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
Allow access to writer and provider #158
Comments
Attached is a possible patch for above issue. The patch is against V2.1.2 (api and impl) but I would guess it is the same against HEAD. Feedback or suggestions are of course welcome. It affects:
and gives you:
Actually I think that the setWriters(final String tag, final Level level) is not necessary and should be left out. But for completeness the patch contains it. |
@Git5000 Could you provide your changes as pull requests and add some JUnit tests? I would be glad to merge your changes! |
Fix issue #158 (Access to providers and writers)
This closed issue has been locked automatically. However, please feel free to file a new issue. |
The automatic loading via services of (custom) writers and providers is nice but prevents access to the created objects (unless you call out somewhere from the constructor). Is it possible to add getters for writers and maybe providers. The idea behind it is to change writer properties at runtime.
Possible solution:
Add getProviders() to BundleLoggingProvider to get its internal array.
Add getWriters() or getWriter(tag,level) or getWriters(tag) to TinylogLoggingProvider.
The text was updated successfully, but these errors were encountered: