-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add Additional Primary Writer #32
Comments
The additional writers are special in two regards:
Or put the other way: the log specification only influences the default logger. How would you want it for your "sibling of the default writer" - filtered by the log specification, or always called? |
I provided an implementation in branch add_default_writer. |
I think the additional default writer should inherit the log specification from the default writer. I think this is the expected behavior by users. |
@emabee I tested the |
Great, thanks! I just published 0.14.3 with the change from add_default_writer. |
I might be missing something but it seems like the
add_writer
requires calling all the logging macros with a target. I can't see any way to add an additional writer that always get's used.Would adding some way to add writers that always get logged to be accepted?
My use case is I want to write a custom writer for the windows event viewer but also use the file log writer to keep text logs for my application.
Thanks!
The text was updated successfully, but these errors were encountered: