Exemplo n.º 1
0
        /// <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;
            }
        }
Exemplo n.º 2
0
 public void Debug(object message)
 {
     UnderlyingLog.Debug(message);
 }
Exemplo n.º 3
0
 public void Debug(object message, Exception exception)
 {
     UnderlyingLog.Debug(message, exception);
 }