public void SetupLogging(string productTitle, string token = null) { if ((token != null) && (ConfigurationManager.AppSettings["Logentries.Token"] == null)) ConfigurationManager.AppSettings["Logentries.Token"] = token; SetupNlog.Initialize(productTitle); if (Common.Flags.Verbose) { var splatLogger = new NLogSplatLogger(); Locator.CurrentMutable.Register(() => splatLogger, typeof(ILogger)); } #if DEBUG LogHost.Default.Level = LogLevel.Debug; #endif }
public void SetupLogging(string productTitle, string token = null) { if ((token != null) && (ConfigurationManager.AppSettings["Logentries.Token"] == null)) { ConfigurationManager.AppSettings["Logentries.Token"] = token; } SetupNlog.Initialize(productTitle); if (Common.Flags.Verbose) { var splatLogger = new NLogSplatLogger(); Locator.CurrentMutable.Register(() => splatLogger, typeof(ILogger)); } #if DEBUG LogHost.Default.Level = LogLevel.Debug; #endif }