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

Is it possible to disable logs? #13

Open
saleh-old opened this issue Dec 27, 2019 · 2 comments
Open

Is it possible to disable logs? #13

saleh-old opened this issue Dec 27, 2019 · 2 comments

Comments

@saleh-old
Copy link

I'm using python's logger in my app heavily. I don't want Timeloop's logs to be added to my apps logs. I know I could increase the log-level so that INFO logs won't be stored, but I actually need INFO level.

Is there a way to disable it?
Thanks in advance

@projx
Copy link

projx commented Feb 24, 2020

There is nothing in the code for disabling this. Which leaves 3 options:

  1. Leave it
  2. Modify the code (fork-it, add a disable feature, ask for it to be re-merged)
  3. You could try disabling it, using logging.removeHandler

@maguro
Copy link

maguro commented Nov 3, 2020

This worked for me, ymmv:

logging.getLogger("timeloop").setLevel(logging.CRITICAL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants