Esempio n. 1
0
 private static void LogInternal(InbuiltLogger logger, InbuiltLogLevel level, Exception exception, string format, object[] objects)
 {
     if (logger.IsEnabled(level))
     {
         logger.Log(level, exception, format, objects);
     }
 }
Esempio n. 2
0
        public App()
        {
            InitializeComponent();

            SetupLog();
            _logger = InbuiltLog.For(typeof(App));

            MainPage = new MainPage();
        }
Esempio n. 3
0
 public static void Info(this InbuiltLogger logger, string message)
 {
     LogInternal(logger, InbuiltLogLevel.Information, null, message, null);
 }
Esempio n. 4
0
 public static void Warning(this InbuiltLogger logger, string message)
 {
     LogInternal(logger, InbuiltLogLevel.Warning, null, message, null);
 }
Esempio n. 5
0
 public static void Error(this InbuiltLogger logger, Exception exception, string format, params object[] args)
 {
     LogInternal(logger, InbuiltLogLevel.Error, exception, format, args);
 }
Esempio n. 6
0
 public static void Error(this InbuiltLogger logger, Exception exception, string message)
 {
     LogInternal(logger, InbuiltLogLevel.Error, exception, message, null);
 }
Esempio n. 7
0
 public static void Debug(this InbuiltLogger logger, string format, params object[] args)
 {
     LogInternal(logger, InbuiltLogLevel.Debug, null, format, args);
 }