public Log(string message, LogTypeEnumerator logType, Exception ex) { this.LogType = (Int32)logType; this.LogTime = DateTime.Now; if (this.LogType == (Int32)LogTypeEnumerator.ApplicationLog) { this.CreateApplicationLogMessage(message); } else { this.CreateExceptionLogMessage(message, ex); } }
public Log(LogTypeEnumerator logType, Exception ex) : this(ex.Message, logType, ex) { }
public Log(string message, LogTypeEnumerator logType) : this(message, logType, new Exception()) { }