using System;

namespace YBDevice.Core
{
    /// <summary>
    /// 日志处理
    /// </summary>
    public interface ILoggerService
    {
        /// <summary>
        /// 添加日志
        /// </summary>
        /// <param name="msg">日志内容</param>
        /// <param name="type">1-error,2-information,3-warning,4-debug,5-fatal</param>
        void AddLogger(string msg, int type = 2);
        /// <summary>
        /// 添加日志
        /// </summary>
        /// <param name="ex">异常信息</param>
        /// <param name="param">参数</param>
        /// <param name="program">程序</param>
        /// <param name="type">1-error,2-information,3-warning,4-debug,5-fatal</param>
        void AddErrorLogger(Exception ex, string param = "", string program = "", int type = 1);
    }
}
