2015-01-31, 20:09
(2015-01-26, 14:31)ruuk Wrote:(2015-01-25, 02:04)Razze Wrote: Is there any resource on the recommended way to do logging in kodi?
One thing I find useful is to have an addon setting to enable debugging for just the addon and use LOGDEBUG unless this is enabled. I have almost never needed Kodi debugging enabled to find an issue with an addon and it generally fills the log, making it harder to find the addon's log messages.
so I if I understand you I should have a switch:
if logging in plugin settings activated:
xbmc.log("something", level=LOGDEBUG)
else:
xbmc.log("something", level=LOGNOTICE)
and isn't this against the whole point of log levels?