docs(appenders): small change to category filter docs

This commit is contained in:
Gareth Jones 2017-04-18 09:41:36 +10:00
parent 66db7a7558
commit bf2356dfba

View File

@ -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.