Exemple #1
0
        /// <summary>
        /// 日志持久化工具
        /// </summary>
        /// <param name="logType">日志类型</param>
        /// <param name="filePath">写入路径</param>
        /// <param name="lazyTime">延迟写入时间</param>
        internal LogWrite(EumLogType logType, string filePath, int lazyTime)
        {
            this._logType  = logType;
            this._lazyTime = lazyTime;
            this._filePath = filePath;

            InitTimer();
        }
Exemple #2
0
        /// <summary>
        /// 日志持久化工具
        /// </summary>
        /// <param name="logType">日志类型</param>
        /// <param name="filePath">写入路径</param>
        /// <param name="lazyTime">延迟写入时间</param>
        internal LogWrite(EumLogType logType, string filePath, int lazyTime)
        {
            this._logType = logType;
            this._lazyTime = lazyTime;
            this._filePath = filePath;

            InitTimer();
        }