Routes all log events logged through NLog into the Common.Logging infrastructure.
For a list of all members of this type, see CommonLoggingTarget Members .
System.Object
Target
TargetWithLayout
CommonLoggingTarget
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
LoggingConfiguration cfg = new LoggingConfiguration();
CommonLoggingTarget target = new CommonLoggingTarget("${level:uppercase=true}|${logger}|${message}");
cfg.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, target));
LogManager.Configuration = cfg;
Logger log = LogManager.GetLogger("mylogger");
log.Debug("some message");
Namespace: Common.Logging.NLog
Assembly: Common.Logging.NLog (in Common.Logging.NLog.dll)
CommonLoggingTarget Members | Common.Logging.NLog Namespace