private static void LogInternal(InbuiltLogger logger, InbuiltLogLevel level, Exception exception, string format, object[] objects) { if (logger.IsEnabled(level)) { logger.Log(level, exception, format, objects); } }
public App() { InitializeComponent(); SetupLog(); _logger = InbuiltLog.For(typeof(App)); MainPage = new MainPage(); }
public static void Info(this InbuiltLogger logger, string message) { LogInternal(logger, InbuiltLogLevel.Information, null, message, null); }
public static void Warning(this InbuiltLogger logger, string message) { LogInternal(logger, InbuiltLogLevel.Warning, null, message, null); }
public static void Error(this InbuiltLogger logger, Exception exception, string format, params object[] args) { LogInternal(logger, InbuiltLogLevel.Error, exception, format, args); }
public static void Error(this InbuiltLogger logger, Exception exception, string message) { LogInternal(logger, InbuiltLogLevel.Error, exception, message, null); }
public static void Debug(this InbuiltLogger logger, string format, params object[] args) { LogInternal(logger, InbuiltLogLevel.Debug, null, format, args); }