mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
docs(appenders): small change to category filter docs
This commit is contained in:
parent
66db7a7558
commit
bf2356dfba
@ -2,6 +2,12 @@
|
||||
|
||||
This is not strictly an appender - it wraps around another appender and stops log events from specific categories from being written to that appender. This could be useful when debugging your application, but you have one component that logs noisily, or is irrelevant to your investigation.
|
||||
|
||||
## Configuration
|
||||
|
||||
* `type` - `categoryFilter`
|
||||
* `exclude` - `string | Array<string>` - the category (or categories if you provide an array of values) that will be excluded from the appender.
|
||||
* `appender` - `string` - the name of the appender to filter.
|
||||
|
||||
## Example
|
||||
|
||||
```javascript
|
||||
@ -20,9 +26,3 @@ const noisyLogger = log4js.getLogger('noisy.component');
|
||||
logger.debug('I will be logged in all-the-logs.log');
|
||||
noisyLogger.debug('I will not be logged.');
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
* `type` - `categoryFilter`
|
||||
* `exclude` - `string | Array<string>` - the category (or categories if you provide an array of values) that will be excluded from the appender.
|
||||
* `appender` - `string` - the name of the appender to filter.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user