Beispiel #1
0
 public void Log(Microsoft.Framework.Logging.LogLevel logLevel, int eventId, object state, Exception exception, Func <object, Exception, string> formatter)
 {
     Logger.Information(
         string.Format("LogLevel: {0}, EventId: {1}, State: {2}, Exception: {3}, Formatter: {4}, LoggerName: {5}, Scope: {6}",
                       logLevel, eventId, state, exception, formatter, _name, _scope
                       ));
 }
Beispiel #2
0
 public bool IsEnabled(Microsoft.Framework.Logging.LogLevel logLevel)
 {
     return(_enabled);
 }