Пример #1
0
        /// <summary>
        /// 名前付きロガーを新規に取得します。
        /// </summary>
        /// <param name="name">ログ名</param>
        /// <returns>新しいロガー</returns>
        public ILogger CrerateNamedLogger(string name)
        {
            FileHeavyLogger logger;

            logger       = new FileHeavyLogger(LogManager.GetLogger(name));
            logger._lock = this._lock;
            return(logger);
        }
Пример #2
0
        /// <summary>
        /// 名前付きロガーを新規に取得します。
        /// </summary>
        /// <param name="name">ログ名</param>
        /// <returns>新しいロガー</returns>
        public ILogger CrerateNamedLogger(string name)
        {
            FileHeavyLogger logger;

            logger = new FileHeavyLogger(LogManager.GetLogger(name));
            logger._lock = this._lock;
            return logger;
        }