Skip to content

Commit 908f011

Browse files
committed
NLog 5.2 without trim warnings (fix register method)
1 parent 7e753c2 commit 908f011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2023-05-30-nlog-5-2-trim-warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following methods has been marked obsolete on `XmlLoggingConfiguration`, wit
8888
- `XmlLoggingConfiguration.SetCandidateConfigFilePaths()`-Method replaced by chaining `LogManager.Setup().LoadConfigurationFromFile(...)`
8989
- `XmlLoggingConfiguration.ResetCandidateConfigFilePath()`-Method replaced by chaining `LogManager.Setup().LoadConfigurationFromFile(...)`
9090

91-
The following methods has been marked obsolete on `LayoutRenderer`, with redirection to `Setup()` extension methods:
91+
The following static methods to register custom NLog extensions, with redirection to `Setup()` extension methods:
9292

9393
- `Target.Register`-Method replaced by `LogManager.Setup().SetupExtensions(ext => ext.RegisterTarget<T>())`-extension-method
9494
- `Layout.Register`-Method replaced by `LogManager.Setup().SetupExtensions(ext => ext.RegisterLayout<T>())`-extension-method

0 commit comments

Comments
 (0)