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

            Log(logEntry);
        }
Esempio n. 3
0
        public void Error(string message, EventCode code, params object[] args)
        {
            LogData logEntry = new LogData(DateTime.Now, EventLevel.Error, code, Source, message, args);

            Log(logEntry);
        }
Esempio n. 4
0
        public void Info(string message, params object[] args)
        {
            LogData logEntry = new LogData(DateTime.Now, EventLevel.Information, EventCode.Info, Source, message, args);

            Log(logEntry);
        }