Open zhihualipolestar opened 2 years ago
I'm thinking of making the Brolog
instance an EventEmitter, and it will emit logs so that the user can use a listener to select how to print their log message with maximum flexibility.
Code might look like this:
log.on('verbose', (date, module, message) => {
console.info(date, module, message) // any format as you want.
})
CC @wechaty@juzi (in case you are interested)
Want to have log printed with Date, current it just print the time ,not print the date+time.