private void InitLogging() { var formatter = new LineFormatter(); var logConfig = new LogConfig(formatter); var target = new SyncFileTarget(Path.Combine(global::Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "Log.log")); logConfig.AddTarget(LogLevel.Trace, LogLevel.Fatal, target); LogManager.Init(logConfig); }
private static void InitLogger() { var formatter = new LineFormatter(); var logConfig = new LogConfig(formatter); logConfig.AddTarget(LogLevel.Trace, LogLevel.Fatal, new SyncFileTarget(@"D:\Log.log")); LogManager.Init(logConfig); }
private static void InitLogger() { var formatter = new LineFormatter(); var logConfig = new LogConfig(formatter); logConfig.AddTarget(LogLevel.Trace, LogLevel.Fatal, new SyncFileTarget(Path.Combine(ApplicationData.Current.LocalFolder.Path, @"Log.log"))); LogManager.Init(logConfig); }
private static void InitLogger() { var categoryRegistry = new LogCategoryRegistrar(); var formatter = new LineFormatter(new DefaultCategoryFormatter(categoryRegistry)); var logConfig = new LogConfig(formatter, categoryRegistry); logConfig.AddTarget(LogLevel.Trace, LogLevel.Fatal, new ConsoleTarget()); LogManager.Init(logConfig); }