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);
        }
        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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
        internal override void Information(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            AdalEventSource.Information(log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Information, log);
        }