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);
        }
Example #2
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);
        }
        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);

            AdalEventSource.Information(log);
            LoggerCallbackHandler.ExecuteCallback(LogLevel.Information, log);
        }
Example #5
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);
        }
Example #6
0
        internal override void Warning(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            if (LoggerCallbackHandler.UseDefaultLogging)
            {
                AdalEventSource.Warning(log);
            }

            LoggerCallbackHandler.ExecuteCallback(LogLevel.Warning, log);
        }
Example #7
0
        internal override void Error(CallState callState, Exception ex, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), ex.ToString());

            if (LoggerCallbackHandler.UseDefaultLogging)
            {
                AdalEventSource.Error(log);
            }

            LoggerCallbackHandler.ExecuteCallback(LogLevel.Error, log);
        }
Example #8
0
        internal override void Information(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            if (LoggerCallbackHandler.UseDefaultLogging)
            {
                Log.Info(null, log);
            }

            LoggerCallbackHandler.ExecuteCallback(LogLevel.Information, log);
        }
        internal override void Information(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string log = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            if (LoggerCallbackHandler.UseDefaultLogging)
            {
#if NETSTANDARD1_3
                Console.WriteLine(log);
#else
                AdalEventSource.Information(log);
#endif
            }

            LoggerCallbackHandler.ExecuteCallback(LogLevel.Information, log);
        }
Example #10
0
        internal override void Verbose(CallState callState, string message, [System.Runtime.CompilerServices.CallerFilePath] string callerFilePath = "")
        {
            string updatedMessage = PrepareLogMessage(callState, GetCallerFilename(callerFilePath), message);

            LoggerCallbackHandler.ExecuteCallback(LogLevel.Verbose, updatedMessage);
        }