Kodi Community Forum
[solved] xbmc not showing logs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: [solved] xbmc not showing logs (/showthread.php?tid=199165)



[solved] xbmc not showing logs - vitorcarvalhoml - 2014-07-02

Hi, I'm developing a service addon that will verify through a server, if it have some message to send to xbmc. If this message exists, it will show through a popup.

Right now I'm trying to add a new functionality. if xbmc is playing a video the message must not appear.

Code:
    logging.debug('-------------------------------------------')
    logging.debug('Executando showNotificationNow')
    logging.debug('-------------------------------------------')
    if XBMC_ENABLE == True:
        self.player = xbmc.Player()
        logging.debug(str(dir(self.player)))
                    if not self.player.isPlayingVideo():
                # show popup notification
            else:
                # save message to show up later

The problem is that this code lines are "new", I added after I install addon. I'm suspecting that xbmc are not reading the new file. I already disabled/enabled, uninstall and install once again and nothing. In last case, the log message it supposed to appear in xbmc log, I'm right?

What could be wrong?


RE: xbmc not showing logs - KenV99 - 2014-07-04

The syntax for xbmc.log() can be found here: http://mirrors.xbmc.org/docs/python-docs/13.0-gotham/xbmc.html#-log

Code:
xbmc.log(msg='This is a test string.', level=xbmc.LOGDEBUG))



RE: xbmc not showing logs - vitorcarvalhoml - 2014-07-07

Thanks KenV99

Wink