Making a log file

About

Log file in Kodi is a kodi.log file, located in temporary directory. Location of that directory depends on the platform, and even on the same platform it can differ. Locations can be discovered here: https://kodi.wiki/view/Log_file/Advanced#Location

Preparation

First of all, log file, by default, contains only limited records, only errors or some notable actions, but, to understand the cause of an issue, we need full log. So we need to enable debugging in Kodi and in Elementum.

  • Enter Kodi System settings Enter Kodi System settings
  • Enable Expert level of settings Enable Expert level of settings
  • Enable debug logging Enable debug logging
  • That is it for Kodi! But you probably won’t like the onscreen information about CPU usage and so on. So you can create an advancedsettings.xml file in Kodi’s Userdata folder (https://kodi.wiki/view/Userdata), which this content:
<?xml version="1.0" ?>
<advancedsettings>
    <loglevel>2</loglevel>
    <debug>
        <extralogging>true</extralogging>
        <showloginfo>false</showloginfo>
    </debug>
</advancedsettings>

It will enable logging and hide onscreen information.

  • For Elementum: open addon settings, go to “Advanced” tab, set “Log level” to “Debug” Enable debug logging in elementum

  • Now your Kodi records everything into the log file!

What we have

Elementum has few HTTP links which can give you more information about torrenting status, system information, some timers of common operations (which are way too useful for developers!):

  • /debug/bundle will give you all the debug information + kodi.log file included. So it’s the fullest log file, and is what we’d expect from you to find the problem.
  • /debug/all contains all the debug information, without kodi.log, so it’s all about the system and torrent engine, but not Kodi.

To find proper link:

  • Enter Elementum addon, open Status Enter Elementum addon, open Status
  • In the table you can see the address, that can be opened from other devices (in case you Kodi runs on a separate device in the network) Status output

Two ways of taking a log file:

Easy one

If your Elementum starts fine, so you can enter it, browse for something, then you can try this way, if not, please, browse for the Hard one.

There is bundled functionality to upload your /debug/bundle or /debug/all logs to pastebin services. All you need is to enter settings and start an upload:

  • Enter Elementum settings, open Advanced tab, browse to Logging section and you can see there are Upload options. Enter Elementum settings, open Advanced
  • Now you get an url of a paste. Write it down and share in your issues!

Easy enough?!

Hard one

Still not so hard, but, sadly, more manual and needs some effords, at least, for the first time. So you can follow the manual here: https://kodi.wiki/view/Log_file/Easy

Shortly, you can install log uploader plugin, and run it to get pastebin link of an uploaded log file. Or you can find your log location here: https://kodi.wiki/view/Log_file/Advanced#Location and use it manually.