Kodi Community Forum

Full Version: Log Viewer for Kodi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Log Viewer for Kodi

Log viewer for Kodi is an addon program/module to easily display/get Kodi log on GUI interface.

Image

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 Smile
Very nice.
Indeed, very usefull. Hope it makes it to the repository
Hello,

Very useful addon. One small bug, whenever you first open this addon from the Programs menu, it will always display a blank window. I tested it with Confluence, Titan, and Aeon MQ 6; all behave the same way.

Thx
I've submitted a new version of this add-on to the official repository. The source code can be found here. Some features are described bellow:
  • Dedicated API such as script methods:
    Code:
    xbmc.executebuiltin("RunScript(script.logviewer, show_log)")
  • Service for monitoring errors (show log when an error occurs)
  • Full screen window for showing the entire log
  • If possible, allows to invoke "Kodi Logfile Uploader" for uploading the log

Screenshots

Image

Image

Image
How do you stop log viewer wince it starts. andriod  box 17.6 kryton
(2018-05-28, 17:49)warrenmurray Wrote: [ -> ]How do you stop log viewer wince it starts. andriod  box 17.6 kryton
 Service can be disabled in the addon settings (set "Show log when error occurs" radio button to disabled state)
Hi, addon has issues running on todays Kodi 19 daily, possibly due to master branch now depreciating python2 and going to python 3.
Is there a strategy/plan to update this addon?
(2019-10-19, 03:30)skylarking Wrote: [ -> ]Hi, addon has issues running on todays Kodi 19 daily, possibly due to master branch now depreciating python2 and going to python 3.
Is there a strategy/plan to update this addon?

It's being updated as we speak :p
Just discovered the feature http-server - this is just great! Thank you!