public static INDLogBuilder Critical(this INDLogger logger) { if (!logger.IsEnabled(NDLogLevel.Critical)) { return(NDNullLogBuilder.Instance); } return(new NDLogBuilder(NDLogLevel.Critical, logger)); }
public static INDLogBuilder Error(this INDLogger logger) { if (!logger.IsEnabled(NDLogLevel.Error)) { return(NDNullLogBuilder.Instance); } return(new NDLogBuilder(NDLogLevel.Error, logger)); }
public static INDLogBuilder Info(this INDLogger logger) { if (!logger.IsEnabled(NDLogLevel.Information)) { return(NDNullLogBuilder.Instance); } return(new NDLogBuilder(NDLogLevel.Information, logger)); }
public static INDLogBuilder Warn(this INDLogger logger) { if (!logger.IsEnabled(NDLogLevel.Warning)) { return(NDNullLogBuilder.Instance); } return(new NDLogBuilder(NDLogLevel.Warning, logger)); }
public static INDLogBuilder Level(this INDLogger logger, NDLogLevel logLevel) { if (!logger.IsEnabled(logLevel)) { return(NDNullLogBuilder.Instance); } return(new NDLogBuilder(logLevel, logger)); }