コード例 #1
0
        public static INDLogBuilder Critical(this INDLogger logger)
        {
            if (!logger.IsEnabled(NDLogLevel.Critical))
            {
                return(NDNullLogBuilder.Instance);
            }

            return(new NDLogBuilder(NDLogLevel.Critical, logger));
        }
コード例 #2
0
        public static INDLogBuilder Error(this INDLogger logger)
        {
            if (!logger.IsEnabled(NDLogLevel.Error))
            {
                return(NDNullLogBuilder.Instance);
            }

            return(new NDLogBuilder(NDLogLevel.Error, logger));
        }
コード例 #3
0
        public static INDLogBuilder Info(this INDLogger logger)
        {
            if (!logger.IsEnabled(NDLogLevel.Information))
            {
                return(NDNullLogBuilder.Instance);
            }

            return(new NDLogBuilder(NDLogLevel.Information, logger));
        }
コード例 #4
0
        public static INDLogBuilder Warn(this INDLogger logger)
        {
            if (!logger.IsEnabled(NDLogLevel.Warning))
            {
                return(NDNullLogBuilder.Instance);
            }

            return(new NDLogBuilder(NDLogLevel.Warning, logger));
        }
コード例 #5
0
        public static INDLogBuilder Level(this INDLogger logger, NDLogLevel logLevel)
        {
            if (!logger.IsEnabled(logLevel))
            {
                return(NDNullLogBuilder.Instance);
            }

            return(new NDLogBuilder(logLevel, logger));
        }