Click or drag to resize
SimpleConfigurator Class
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: 4.3.0
Syntax
public static class SimpleConfigurator
Methods
  NameDescription
Public methodStatic memberConfigureForConsoleLogging
Configures NLog for console logging so that all messages above and including the Info level are output to the console.
Public methodStatic memberConfigureForConsoleLogging(LogLevel)
Configures NLog for console logging so that all messages above and including the specified level are output to the console.
Public methodStatic memberConfigureForFileLogging(String)
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)
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)
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)
Configures NLog for to log to the specified target so that all messages above and including the specified level are output.
Top
See Also