v19 Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20
#1
All,

Recently Kodi 19 moved to using spdlog in its core. This meant a cleanup of the log levels kodi has had for many years. Both the NOTICE and SEVERE levels are now redundant and INFO and FATAL should now be used in their place respectively. Kodi will then use the following set of level for logging: DEBUG, INFO, WARNING, ERROR and FATAL.

Python addons only ever used the xbmc.LOGNOTICE level (SEVERE was never exposed in the API). Work is already underway to update the binary addons starting with PVR. The deprecated log levels have all been changed in Kodi in this PR: https://github.com/xbmc/xbmc/pull/17730.

NOTICE and SEVERE will deprecated from all APIs by the end of June.

As there are some python addons already in the matrix repo using xbmc.LOGNOTICE I will provide list of those on this thread later today.


please note that addons submitted to our repository should only use the xbmc.LOGDEBUG level.
we prefer to keep the standard kodi.log file free from all kinds of addon logging, for two reasons:
- so kodi devs can easily spot kodi issues in the log, without having to scroll through a giant amount of addon logging
- on systems where kodi runs 24/7, the logfile can grow very large very quickly if a lot of logging is done


Regards,

phunkyfish.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply


Messages In This Thread
Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '20 - by phunkyfish - 2020-04-24, 09:08
Logout Mark Read Team Forum Stats Members Help
Addon Logging Deprecation: NOTICE/SEVERE levels to be deprecated by end of June '200