2015-04-05, 15:52
Log Viewer for Kodi
Log viewer for Kodi is an addon program/module to easily display/get Kodi log on GUI interface.
Functionalities:
How to use the "API"
First of all you have to add the require dependency:
Now you have to import the addon module:
Source: https://github.com/fightnight/fightnight....logviewer
Repo: Submitted to the Kodi repo. Waiting for response
Log viewer for Kodi is an addon program/module to easily display/get Kodi log on GUI interface.
Functionalities:
Quote:- Display log at interface.
- Filters (invert log, limit lines)
- Dedicated "API"
How to use the "API"
First of all you have to add the require dependency:
Quote:<import addon="script.logviewer"/>
Now you have to import the addon module:
Quote:from logviewer.lib import Logmodule
logmodule=Logmodule()
Quote:logmodule.loglocation():
Returns the location of the log.
Optional:
old=False (boolean) - Use True to return the old.log
logmodule.getcontent():
Returns the content of log.
Optional:
old=False (boolean) - Use True to return the old.log
invert=False (boolean) - Use True to invert log (most recent first)
line_number=0 (integer) - Number of lines to return (0 all)
logmodule.window():
Show the content of log.
Optional:
old=False (boolean) - Use True to display the old.log
invert=False (boolean) - Use True to invert log (most recent first)
line_number=0 (integer) - Number of lines to display (0 all)
Quote:plugin://script.logviewer/get_log
Opens the window with recent log
plugin://script.logviewer/get_oldlog
Opens the window with old log
Source: https://github.com/fightnight/fightnight....logviewer
Repo: Submitted to the Kodi repo. Waiting for response