Migrate debug print to use python's logging system (via xbmc.log or stdout).
logger.py (stream/filehandler for logging with addon id used as filter)
addon.py (easy-to-import ADDON object)
Attribution of initial source to xbmcswift2
Usage:
from logger import log...log.debug('this is logged if log.getLeve() == logging.DEBUG')log.info('this message logged as logging.INFO')log.warning('this is a warning')
Migrate debug print to use python's logging system (via xbmc.log or stdout).
Attribution of initial source to xbmcswift2
Usage:
from logger import log
...
log.debug('this is logged if log.getLeve() == logging.DEBUG')
log.info('this message logged as logging.INFO')
log.warning('this is a warning')