After a new
bootstrap has been constructed a global variable has been bound for the logger.
The following functions will be available to log things to the console/log file accordingly to the log level:
global.log.trace('This is a message');
global.log.debug('This is a message');
global.log.info('This is a message');
global.log.warn('This is a message');
global.log.error('This is a message');
global.log.fatal('This is a message');
The application default log level is trace
You can change the log level by updating the application config:
{
"logger": {
"level": "trace"
}
}
By default, the boostrap will split the web and cli logs.
The logs will be saved as follows:
project_name.cli.log
project_name.web.log
Last modified | Friday, April 30, 2021, 12:00:21 PM UTC |
Last author | Colin van Eenige |
Commit ID | 4c7a701 |