Merge pull request #1180 from log4js-node/update-docs

chore(docs): corrected typo in sample code for multiFile appender
This commit is contained in:
Lam Wei Li 2022-01-28 16:49:53 +08:00 committed by GitHub
commit e6f3cb1a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ log4js.configure({
const logger = log4js.getLogger();
logger.debug('I will be logged in logs/default.log');
const otherLogger = log4js.getLogger('cheese');
logger.info('Cheese is cheddar - this will be logged in logs/cheese.log');
otherLogger.info('Cheese is cheddar - this will be logged in logs/cheese.log');
```
This example will result in two log files (`logs/default.log` and `logs/cheese.log`) containing the log messages.