ExecuteCallback() static private method

static private ExecuteCallback ( LogLevel level, string message ) : void
level LogLevel
message string
return void
        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);
        }
        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);
        }
        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);
        }
        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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
        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);
        }
Esempio n. 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);
        }
        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);
        }