Visitar URL original
Improve AOT trimming with explicit loading of NLog config · Issue #5833 · NLog/NLog · GitHub
Skip to content

Improve AOT trimming with explicit loading of NLog config #5833

Open

Description

@snakefoot

Applications using Ahead-of-Time (AOT) trimming will always include the ability to parse NLog-configuration, because NLog will perform automatic loading of NLog.config on initial call to NLog.LogManager.GetCurrentClassLogger().

To reduce the footprint of NLog even further, then one could consider to remove this automatic-loading. This will of course have side-effects for all applications that doesn't use AOT, and will make most tutorials obsolete.

Alternative introduce new NLog.Basic / NLog.Core nuget-package, and then perform ILMerge into NLog-nuget-package (still single NLog.dll)

Activity

  1. deleted a comment from welcome on May 24, 2025
  2. added this to the 7.0 milestone on May 24, 2025
  3. changed the title [-]Improve AOT trimming using explicit NLog configuration loading[/-] [+]Improve AOT trimming with explicit NLog configuration loading[/+] on Jun 20, 2025
  4. changed the title [-]Improve AOT trimming with explicit NLog configuration loading[/-] [+]Improve AOT trimming with explicit loading of NLog config[/+] on Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions