-
Notifications
You must be signed in to change notification settings - Fork 61
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
Cannot use log level "info" to send logs to loki #20
Comments
@Koushikgudipati did you ever resolve this? I'm running into the same issue as well. Update: after some digging, I discovered that when you call I discovered that the logger object's default level is set to WARNING. You can check this by printing out the current level with this statement: CRITICAL = 50 So what we have to do is set the level (change the filter) to which we will allow messages to carry through. We can do this by adding this line after calling logging.getLogger(...):
Now check the logger current level |
gatlee21 This is awsome! Thanks so much for sharing, can i ask you where have you been digging to find this out? So i can do the same! |
2024 and anyone resolved this problem, I got the same issue on Python, this is a foolish bug :d |
I am trying to push logs to loki.
When pushing logs with log level info , I do not see any logs going to loki .also it does not throw any error as well.
When i use log level as error/warn i can logs pushed to loki.
Do i need to make any change to send info log level logs to info loki?
Also i have used
The text was updated successfully, but these errors were encountered: