Log file/Advanced

From XBMC
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
 
*'''xbmc.old.log''' - This is the log file from the last XBMC session.  If XBMC crashes AND you have restart it before viewing the log, this is the one you want.
 
*'''xbmc.old.log''' - This is the log file from the last XBMC session.  If XBMC crashes AND you have restart it before viewing the log, this is the one you want.
 
==Location==
 
==Location==
'''xbmc.log''' and '''xbmc.old.log''' are located here, depending on your OS:
+
''xbmc.log'' and ''xbmc.old.log'' are located here, depending on your OS:
 
{| border="1" cellpadding="5"
 
{| border="1" cellpadding="5"
|'''OSX/ATV''' || /Users/<username>/Library/Logs/
+
|'''OSX/ATV''' || /Users/''<username>''/Library/Logs/
 
|-
 
|-
|'''Linux'''  || /home/<username>/.xbmc/temp/
+
|'''Linux'''  || /home/''<username>''/.xbmc/temp/
 
|-
 
|-
|'''Windows XP''' || C:\documents and settings\<username>\application data\xbmc\
+
|'''Windows XP''' || C:\documents and settings\''<username>''\application data\xbmc\
 
|-
 
|-
|'''Windows Vista''' || C:\users\<username>\appdata\roaming\xbmc
+
|'''Windows Vista/7''' || C:\users\''<username>''\appdata\roaming\xbmc
|-
+
|'''Windows 7''' || C:\users\<username>\appdata\roaming\xbmc
+
 
|}
 
|}
  
Line 43: Line 41:
 
*'''Debug w/ Visuals''' - Same printed log as ''Debug'', but free memory and CPU usage are rendered on the screen as well.
 
*'''Debug w/ Visuals''' - Same printed log as ''Debug'', but free memory and CPU usage are rendered on the screen as well.
 
*'''SMB Debug''' - Same as Debug w/ Visuals with the addition of ridiculous amounts of Samba debugging info.  Use this only if asked.  
 
*'''SMB Debug''' - Same as Debug w/ Visuals with the addition of ridiculous amounts of Samba debugging info.  Use this only if asked.  
===Enable Debugging===
+
==Enable Debugging==
 
There are two ways to control log output.
 
There are two ways to control log output.
====GUI Setting====
+
==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]].
 
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]].
====AdvancedSettings.xml====
+
==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.
 
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.

Revision as of 06:00, 24 May 2009

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