Beispiel #1
0
 public override ILOGGER Configure(LoggingOptions options = null) {
     return this.Fluently(_ => {
         if (Configuration.IsNull()) {
             LogOptions = options ?? new LoggingOptions();
             Configuration = new LoggingConfiguration();
             LogOptions.RequireFileSink.IfTrue(() => CreateFileTarget(DiagnosticLoggerName, "${basedir}/diagnostics.txt", DefaultLayout));
             LogOptions.RequireEventLogSink.IfTrue(() => CreateEventLogTarget());
             LogOptions.RequireConsoleSink.IfTrue(() => CreateConsoleTarget());
             LogManager.Configuration = Configuration;
             Diagnostics.Info("Default NLog log configuration established");
         }
     });
 }
Beispiel #2
0
 public abstract ILogger Configure(LoggingOptions options = null);
Beispiel #3
0
 public override ILogger Configure(LoggingOptions options = null) {
     return this;
 }