예제 #1
0
파일: Log.cs 프로젝트: CarlosVV/mediavf
        /// <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;
            }
        }
예제 #2
0
파일: Log.cs 프로젝트: CarlosVV/mediavf
 public void Info(object message)
 {
     UnderlyingLog.Info(message);
 }
예제 #3
0
파일: Log.cs 프로젝트: CarlosVV/mediavf
 public void Info(object message, Exception exception)
 {
     UnderlyingLog.Info(message, exception);
 }