-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Windows 10, Node 8.11.2:
/* logger -> */
const easyloggingpp = require('easyloggingpp');
const Level = easyloggingpp.Level;
const logger = easyloggingpp.getLogger('mylogger'); // register logger
easyloggingpp.configureAllLoggers([
{
config: easyloggingpp.ConfigType.Format,
value: '%levshort [%datetime] [%fbase:%line] %msg', // <-- fbase or file for full path
},
]);
/* <- logger */
logger.info('test');
output:
I [2018-06-06 19:29:07,158] [Object.<anonymous> (C:0] test
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels