/// <summary> /// Use underlying log4net log /// </summary> /// <param name="message"></param> /// <param name="category"></param> /// <param name="priority"></param> public void Log(string message, Category category, Priority priority) { switch (category) { case Category.Debug: UnderlyingLog.Debug(message); break; case Category.Info: UnderlyingLog.Info(message); break; case Category.Warn: UnderlyingLog.Warn(message); break; case Category.Exception: if (priority != Priority.High) { UnderlyingLog.Error(message); } else { UnderlyingLog.Fatal(message); } break; } }
public void Warn(object message) { UnderlyingLog.Warn(message); }
public void Warn(object message, Exception exception) { UnderlyingLog.Warn(message, exception); }