Click or drag to resize

SimpleConfigurator Class

Note: This API is now obsolete.

Provides simple programmatic configuration API used for trivial logging cases. Warning, these methods will overwrite the current config.
Inheritance Hierarchy
SystemObject
  NLog.ConfigSimpleConfigurator

Namespace:  NLog.Config
Assembly:  NLog (in NLog.dll) Version: 5.2.0+eed5f76d158dbcaef9326f7a0e1c281adad171e8
Syntax
[ObsoleteAttribute("Use LogManager.Setup().LoadConfiguration() instead. Marked obsolete on NLog 5.2")]
public static class SimpleConfigurator
Methods
  NameDescription
Public methodStatic memberConfigureForConsoleLogging Obsolete.
Configures NLog for console logging so that all messages above and including the Info level are output to the console.
Public methodStatic memberConfigureForConsoleLogging(LogLevel) Obsolete.
Configures NLog for console logging so that all messages above and including the specified level are output to the console.
Public methodStatic memberConfigureForFileLogging(String) Obsolete.
Configures NLog for file logging so that all messages above and including the Info level are written to the specified file.
Public methodStatic memberConfigureForFileLogging(String, LogLevel) Obsolete.
Configures NLog for file logging so that all messages above and including the specified level are written to the specified file.
Public methodStatic memberConfigureForTargetLogging(Target) Obsolete.
Configures NLog for to log to the specified target so that all messages above and including the Info level are output.
Public methodStatic memberConfigureForTargetLogging(Target, LogLevel) Obsolete.
Configures NLog for to log to the specified target so that all messages above and including the specified level are output.
Top
See Also