Log file/Advanced

From XBMC
< Log file
Revision as of 06:00, 24 May 2009 by Althekiller (Talk | contribs)
Jump to: navigation, search

At some point during your foray into XBMC, you will likely come up against a problem that isn't made 100% clear from errors in the GUI. This is where the log file comes into play. XBMC writes all sorts of useful stuff to its log, which is why it should be included with every bug/problem report. Don't be afraid of its contents! Often a quick glance through the log will turn up a simple typo or missing file which you can easily fix on your own.

Contents

1 Log Files

2 Location

xbmc.log and xbmc.old.log are located here, depending on your OS:

OSX/ATV /Users/<username>/Library/Logs/
Linux /home/<username>/.xbmc/temp/
Windows XP C:\documents and settings\<username>\application data\xbmc\
Windows Vista/7 C:\users\<username>\appdata\roaming\xbmc


3 Layout

Each event is logged to one line of the XBMC log file which is formatted as follows...

[TIMESTAMP] T:[THREADID] M:[FREEMEM] [LEVEL]: [MESSAGE]

4 Log Levels

There are two different types levels when talking about the XBMC log. The first is the severity of event that has occurred. The second controls which severity levels are actually printed out to the log.

4.1 Severity Levels

In order from least to most severe...

4.2 Log File Control Levels

In order from least to most information provided...

5 Enable Debugging

There are two ways to control log output.

6 GUI Setting

In Settings > System there is a setting Enable debug logging. This lets you toggle between Normal and Debug w/ visuals on the fly. NOTE: This option is hidden if you have set the log level in advancedsettings.xml.

7 AdvancedSettings.xml

You can set any of the five #log file control levels using the <loglevel> tag in advancedsettings.xml. See Advancedsettings.xml#.3Cloglevel.3E for details. Setting debug level like this will hide the GUI setting.

Personal tools
Namespaces
Variants
Actions
Navigation
Wiki help
Google Search
Toolbox