示例#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 Warn(object message)
 {
     UnderlyingLog.Warn(message);
 }
示例#3
0
文件: Log.cs 项目: CarlosVV/mediavf
 public void Warn(object message, Exception exception)
 {
     UnderlyingLog.Warn(message, exception);
 }