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

Use a non-root logger #293

Closed
genericmoniker opened this issue Jan 13, 2015 · 1 comment
Closed

Use a non-root logger #293

genericmoniker opened this issue Jan 13, 2015 · 1 comment

Comments

@genericmoniker
Copy link

It would be nice if watchdog didn't write to the root logger (that is, calling logging.debug), but rather created its own logger (logging.getLogger). That would give application writers more control over the output.

I notice this with inotify_buffer.py especially. While I generally would like the root logger to log at DEBUG in my application, doing so means that my log file gets flooded with "InotifyBuffer" messages when there's a bunch of IO in a watched location. If watchdog had its own logger, I could set the level for that independently.

@tamland
Copy link
Collaborator

tamland commented Jan 27, 2015

Already fixed. #274. Sorry for the inconvenience

@tamland tamland closed this as completed Jan 27, 2015
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

2 participants