Example #1
0
 internal static void Log(this ILogAware subject, LogEntry logEntry)
 {
     ExecuteLogAction(l => l.Log(logEntry));
     //The above line is equivalent to:
     //  var logger = LoggerCreator.CurrentLogger;
     //  logger?.Log(logEntry);
 }
Example #2
0
 internal static void LogFatal(this ILogAware subject, Exception exception)
 {
     ExecuteLogAction(l => l.LogFatal(exception));
 }
Example #3
0
 internal static void LogError(this ILogAware subject, Func <string> messageOnDemand)
 {
     ExecuteLogAction(l => l.LogError(messageOnDemand));
 }
Example #4
0
 internal static void LogError(this ILogAware subject, string message)
 {
     ExecuteLogAction(l => l.LogError(message));
 }
Example #5
0
 internal static void LogFatal(this ILogAware subject, string message, Exception exception)
 {
     ExecuteLogAction(l => l.LogFatal(message, exception));
 }