-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Use case:
Enable specific logger category to output debug logs in production for debugging instead of enabling debug level logs for the whole application.
Usage example:
// services/serviceA.js
const logger = require('@workablehr/orka').getLogger('serviceA');
function serviceFn(){
logger.debug('start');
// doSomething
logger.debug('end');
}
module.exports = serviceFn;
// config/env/staging.json
"log": {
"level": "info",
"categories": {
"serviceA": {
"appenders": ['json'],
"level": "debug"
}
}What should be done:
- [] Add documentation about available appenders
- [] use config.log.categories in Log4js.configure (https://github.com/Workable/orka/blob/master/src/initializers/log4js/index.ts )
SokratisVidros and nikostoulas
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request