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

[log][handler] Add multi handler to fan out log #87

Closed
at15 opened this issue Sep 6, 2018 · 1 comment
Closed

[log][handler] Add multi handler to fan out log #87

at15 opened this issue Sep 6, 2018 · 1 comment

Comments

@at15
Copy link
Member

at15 commented Sep 6, 2018

Consider a log that write to both stdout and file, we need a handler that write to both, the idea is similar to io.MultiWriter

The reason we can't use io.MultiWriter directly is we also want different format for different output. i.e. stdout, I want to use a human readable format, for file I want to use machine readable format, further more I can even log to multiple files with different format, i.e. log.txt and log.json

Ref

@at15 at15 added this to the 0.0.8 milestone Sep 6, 2018
at15 added a commit that referenced this issue Nov 26, 2018
- fan out log in serial
@at15
Copy link
Member Author

at15 commented Nov 26, 2018

finished in #90

@at15 at15 closed this as completed Nov 26, 2018
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