goxtool icon indicating copy to clipboard operation
goxtool copied to clipboard

Ability to change logging level from ini file

Open aido opened this issue 12 years ago • 2 comments

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.

aido avatar Apr 29 '13 23:04 aido

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

prof7bit avatar May 01 '13 17:05 prof7bit

Nice one! Thank prof7bit.

aido avatar May 01 '13 21:05 aido