From bf2356dfba940a113d71dd98e0bc232a6a7772dd Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 18 Apr 2017 09:41:36 +1000 Subject: [PATCH] docs(appenders): small change to category filter docs --- docs/categoryFilter.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/categoryFilter.md b/docs/categoryFilter.md index 3cf4744..e80966c 100644 --- a/docs/categoryFilter.md +++ b/docs/categoryFilter.md @@ -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` - 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` - 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.