/// <summary> /// Writes formatted text by passing the relevant arguments. /// </summary> /// <param name="logEntry"></param> /// protected void Log(LogData logEntry) { WriterMethod(logEntry); }
public void Warning(string message, params object[] args) { LogData logEntry = new LogData(DateTime.Now, EventLevel.Warning, EventCode.Warning, Source, message, args); Log(logEntry); }
public void Error(string message, EventCode code, params object[] args) { LogData logEntry = new LogData(DateTime.Now, EventLevel.Error, code, Source, message, args); Log(logEntry); }
public void Info(string message, params object[] args) { LogData logEntry = new LogData(DateTime.Now, EventLevel.Information, EventCode.Info, Source, message, args); Log(logEntry); }