Example #1
0
        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);
            }
        }
Example #2
0
 public Log(LogTypeEnumerator logType, Exception ex)
     : this(ex.Message, logType, ex)
 {
 }
Example #3
0
 public Log(string message, LogTypeEnumerator logType)
     : this(message, logType, new Exception())
 {
 }