/// <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 Info(object message) { UnderlyingLog.Info(message); }
public void Info(object message, Exception exception) { UnderlyingLog.Info(message, exception); }