@log4js2/core
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -8,2 +8,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
this._appender = new appender(_config.config); | ||
this._appender.setLayout(_config.layout); | ||
this._isPassThrough = (!_config || !_config.filters || _config.filters.length === 0); | ||
@@ -10,0 +11,0 @@ if (!this._isPassThrough) { |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var log_level_1 = require("../const/log.level"); | ||
var formatter_1 = require("../layout/formatter"); | ||
@@ -27,3 +26,3 @@ var LogAppender = /** @class */ (function () { | ||
LogAppender.prototype.getLogLevel = function () { | ||
return this.logLevel || log_level_1.LogLevel.ERROR; | ||
return this.logLevel; | ||
}; | ||
@@ -30,0 +29,0 @@ /** |
import { LogAppender, LogFilter, Newable } from '..'; | ||
import { LogLevel } from '..'; | ||
import { IFilterConfiguration } from './filter.configuration'; | ||
@@ -9,4 +8,3 @@ export default interface IAppenderConfiguration<C = any, T extends LogAppender<C> = LogAppender<C>> { | ||
filters?: Array<IFilterConfiguration<any, LogFilter<any>>>; | ||
level?: LogLevel | number; | ||
layout?: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { LogAppender } from '..'; | ||
import { LogFilter } from '../filter/log.filter'; | ||
/** | ||
@@ -6,2 +6,2 @@ * @returns {(target: Newable<LogAppender>) => void} | ||
*/ | ||
export declare function Filter<T extends LogAppender<any>>(name: string): Function; | ||
export declare function Filter<T extends LogFilter<any>>(name: string): Function; |
@@ -15,1 +15,2 @@ import 'reflect-metadata'; | ||
export { IMarkerFilterConfiguration, MarkerFilter } from './filter/marker.filter'; | ||
export { IThresholdFilterConfiguration, ThresholdFilter } from './filter/threshold.filter'; |
@@ -27,1 +27,3 @@ function __export(m) { | ||
exports.MarkerFilter = marker_filter_1.MarkerFilter; | ||
var threshold_filter_1 = require("./filter/threshold.filter"); | ||
exports.ThresholdFilter = threshold_filter_1.ThresholdFilter; |
{ | ||
"name": "@log4js2/core", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"scripts": { | ||
@@ -19,8 +19,8 @@ "build": "tsc", | ||
"type": "git", | ||
"url": "https://github.com/anigenero/log4js2" | ||
"url": "https://github.com/log4js2/log4js2-core" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/anigenero/log4js2/issues" | ||
"url": "https://github.com/log4js2/log4js2-core/issues" | ||
}, | ||
"homepage": "https://github.com/anigenero/log4js2#readme", | ||
"homepage": "https://github.com/log4js2/log4js2-core#readme", | ||
"license": "MIT", | ||
@@ -27,0 +27,0 @@ "main": "dist/index.js", |
84195
58
2400