コード例 #1
0
        public override void Error(CallState callState, string errorMessage, string callerFilePath = "")
        {
            string message = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), errorMessage);

            MsalEventSource.Error(message);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Error, message);
        }
コード例 #2
0
        internal override void Error(CallState callState, Exception ex, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), ex.ToString());

            Log.Error(null, log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Error, log);
        }
コード例 #3
0
        internal override void Warning(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            Log.Warn(null, log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Warning, log);
        }
コード例 #4
0
        public override void Error(CallState callState, string errorMessage, string callerFilePath = "")
        {
            string message = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), errorMessage);

            Console.WriteLine(message); //Console.writeline writes to NSLog by default
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Error, message);
        }
コード例 #5
0
        internal override void Warning(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string updatedMessage = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            Console.WriteLine(updatedMessage); //Console.writeline writes to NSLog by default
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Warning, updatedMessage);
        }
コード例 #6
0
        internal override void Error(CallState callState, Exception ex, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string message = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), ex.ToString());

            Console.WriteLine(message); //Console.writeline writes to NSLog by default
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Error, message);
        }
コード例 #7
0
        internal override void Information(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            MsalEventSource.Information(log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Information, log);
        }
コード例 #8
0
        public override void Error(CallState callState, string errorMessage, string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), errorMessage);

            Log.Error(null, log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Error, log);
        }
コード例 #9
0
        public override void Verbose(CallState callState, string message,
                                     [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            MsalEventSource.Verbose(log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Verbose, log);
        }