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

Configure log levels #390

Closed
CypRyanCyp opened this issue Dec 4, 2024 · 4 comments
Closed

Configure log levels #390

CypRyanCyp opened this issue Dec 4, 2024 · 4 comments

Comments

@CypRyanCyp
Copy link

Is your feature request related to a problem? Please describe.
I wanted to tune the email alerts, so that only 'WARNING', 'ERROR', 'FATAL' logs are sent per mail. I found no option in the examples and pyLogger page only points to the 'logtype' property which allows 'Application', 'System' or 'Security' only.
I tried to specify in the config.logger.kwargs.handlers.SMTP, but it wouldn't boot up then:
"logtype" : "Security"

Describe the solution you'd like
I would like to specify the log level for each handler, so that I only receive real incident logs per mail, rather than a "successfully booted feature ABC" on boot.

Describe alternatives you've considered
Maybe we can filter logtypes? Not sure if logtype: 1001 refers to info logs on boot?

Great tool!
Thank you for all the work!

Copy link
Contributor

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Dec 18, 2024
@eitch
Copy link

eitch commented Dec 25, 2024

I came here for exactly this as well.

@github-actions github-actions bot removed the stale label Dec 26, 2024
Copy link
Contributor

github-actions bot commented Jan 9, 2025

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Jan 9, 2025
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2025
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

2 participants