Skip to content
New issue

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

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

Already on GitHub? # to your account

Reload logging setup at runtime #192

Closed
ZZerog opened this issue Feb 3, 2021 · 2 comments
Closed

Reload logging setup at runtime #192

ZZerog opened this issue Feb 3, 2021 · 2 comments
Labels

Comments

@ZZerog
Copy link

ZZerog commented Feb 3, 2021

Is possible reload setup at runtime as reload conf. file or programmatically (change logging level) ?

Thx

@ZZerog ZZerog added the question label Feb 3, 2021
@pmwmedia
Copy link
Member

pmwmedia commented Feb 3, 2021

Changing the configuration at runtime isn't supported by tinylog 2 itself. However, if you only want to change the severity level, you can do it by implementing a wrapper for tinylog's logging backend. Here is an example from another user: #102 (comment)

Since tinylog 2.3, it is also possible to extend directly from TinylogLoggingProvider which would require even less code than an the linked example implementation.

@github-actions
Copy link

github-actions bot commented Oct 9, 2022

This closed issue has been locked automatically.
However, please feel free to file a new issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Development

No branches or pull requests

2 participants