コード例 #1
0
        public static void UseIsolatedStorageLogger(this ExceptionlessConfiguration config, LogLevel minLogLevel = LogLevel.Info)
        {
            var log = new SafeExceptionlessLog(new IsolatedStorageFileExceptionlessLog("exceptionless.log"))
            {
                MinimumLogLevel = minLogLevel
            };

            config.Resolver.Register <IExceptionlessLog>(log);
        }
コード例 #2
0
        public static void UseFileLogger(this ExceptionlessConfiguration config, string logPath, LogLevel minLogLevel = LogLevel.Info)
        {
            var log = new SafeExceptionlessLog(new FileExceptionlessLog(logPath))
            {
                MinimumLogLevel = minLogLevel
            };

            config.Resolver.Register <IExceptionlessLog>(log);
        }