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

Ability to change logging level from ini file #28

Open
aido opened this issue Apr 29, 2013 · 2 comments
Open

Ability to change logging level from ini file #28

aido opened this issue Apr 29, 2013 · 2 comments

Comments

@aido
Copy link

aido commented Apr 29, 2013

Hi,

Thanks for a great tool!

Would it be possible add an ini file parameter to change the logging level; giving the option to make it less or more verbose or even an option to disable logging altogether?

I have a system that runs on an SD card and fear too much r/w activity.

UPDATE

I have had a closer look at the logfile and it seems all logged messages are at DEBUG level. Maybe better use could be made of the WARNING, INFO, ERROR and CRITICAL levels rather than logging everything at same level. Just a suggestion, thanks. Then the user may decide via ini file which level they want to see.

@prof7bit
Copy link
Owner

prof7bit commented May 1, 2013

the usage of the python logging module (and its DEBUG level) was only introduced as a quick hack to also capture debug output from the websocket module. I'm going to rework this entire logging mechanism soon, I have some ideas in mind already

@aido
Copy link
Author

aido commented May 1, 2013

Nice one! Thank prof7bit.

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