-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Log file shows packages logs and only current app logs #22
Comments
The
|
Setting documentation tag since it could be a cool example in doc. |
Thanks |
I have tried to use your code and got the following error:
What I'm doing wrong? |
My bad, the adapter returned by daiquiri does not support that. We should probably enhance that too. Try: def create_logger(log_path, log_name, log_level=logging.INFO):
daiquiri.setup(
outputs=(daiquiri.output.File(
directory=log_path, program_name=log_name),
daiquiri.output.STDOUT,))
logging.getLogger(log_name).setLevel(log_level)
return daiquiri.getLogger(program_name=log_name) |
The only way I have managed to change the logger log level is with: |
In my app I create a logger using:
When I look at the console, I see logs for my app and also for all the packages that I use in my app, before when I used the default logger I didn't see those messages.
Can I turn it off, so that in my log I will only see my app logs?
The text was updated successfully, but these errors were encountered: