Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brolog as a EventEmitter #145

Open
huan opened this issue Sep 8, 2021 · 0 comments
Open

Brolog as a EventEmitter #145

huan opened this issue Sep 8, 2021 · 0 comments

Comments

@huan
Copy link
Owner

huan commented Sep 8, 2021

For the maximum flexibility for the end-users for displaying the log messages, we plan to emit the log message as an event named loglevel.

For example:

log.on('verbose', (module, method, message) => {
  // filter module & method at here, and output whatever you want.
})

See: wechaty/puppet-service#152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant