private static void LogSimpleMessage() { string message = "There are many messages but this one is mine!"; Logger4Net.Info(message); Logger4Net.Debug(message); Logger4Net.Warn(message); Logger4Net.Error(message); Logger4Net.Fatal(message); Serilogger.Information(message); Serilogger.Debug(message); Serilogger.Warning(message); Serilogger.Error(message); Serilogger.Fatal(message); }
public void FatalFormat(int eventId, string format, params object[] args) { Serilogger.Fatal("{EventID} - {Message}", eventId, String.Format(format, args)); }
public void FatalFormat(string format, params object[] args) { Serilogger.Fatal("{message}", String.Format(format, args)); }
public void Fatal(int eventId, object message, Exception exception) { Serilogger.Fatal(exception, "{EventID} - {Message}", eventId, message); }
public void Fatal(int eventId, object message) { Serilogger.Fatal("{EventID} - {Message}", eventId, message); }
public void Fatal(object message, Exception exception) { Serilogger.Fatal(exception, "{message}", message); }
public void Fatal(object message) { Serilogger.Fatal("{message}", message); }
public void Fatal(string message) { Serilogger.Fatal(message); }