Difference between revisions of "Activate Logging"

From TV-Browser Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{GenericTemplate|templateheader=This article needs some attention|templatebody=The original article [http://wiki.tvbrowser.org/index.php/Logging_Aktivieren Logging Aktivieren] has better formatting and is much more readable. Please help with the improvement of this article.}}
+
== Usage ==
 +
If you encounter errors that crash TV-Browser the log files can potentially provide useful error information to the developers.
  
To activate logging in TVBrowser a setting in the configuration file has to be made.
+
== Activation ==
 +
Logging must be activated by modifying a configuration file. Logging cannot be activated in the [[Settings]].
  
In the TV-Browser folder are the files windows.properties, linux.properties and osx.properties.
+
In TV-Browsers Program Install directory one of the following files (depending on the OS) exists:
 +
''windows.properties'', ''linux.properties'' or ''osx.properties''.
  
You need to open the file for your OS (Windows = windows.properties ...) then just add the folder where the log file is stored. For Windows you have to change "\" into "/".
+
Open the file for the respective OS (''Windows'' = ''windows.properties'' usw.) and modify the section "''# The folder for logging''". Remove the "#" in front of the path #logdirectory=... . Modify the path if required. Always use "/" instead of "\" (regardless of OS). "#" marks the start of a comment - any subsequent characters on the same line will be ignored.
  
Some examples:
+
The transportable version has no ''*.properties'' files. You need to add the #logdirectory=... line in the fiole ''settings.prop'' . ''settings.prop'' is located in ''./settings/<VERSION>/'' in the TV-Browser (transportable) directory.
  
Windows:
+
==Some Samples==
logdirectory=C:/
+
===Windows===
 +
logdirectory=C:/
  
Linux:
+
or
logdirectory=/home/bodum/
 
  
Now the log file will be created in the respective folder. It will be overwritten at every program start.
+
logdirectory=${user.home}/TV-Browser
 +
 
 +
===Linux===
 +
logdirectory=/home/bodum/
 +
 
 +
Once activated the log file ''tvbrowser.log'' will be created in the specified directory. This file will be overwritten on every start.
 +
 
 +
 
 +
== Deactivation ==
 +
To ''deactivate'' logging the respective line must be commented out by prepending "#" .
  
[[de:Logging aktivieren]]
 
  
 
[[category:Usage]]
 
[[category:Usage]]

Latest revision as of 23:16, 2 April 2008

Usage

If you encounter errors that crash TV-Browser the log files can potentially provide useful error information to the developers.

Activation

Logging must be activated by modifying a configuration file. Logging cannot be activated in the Settings.

In TV-Browsers Program Install directory one of the following files (depending on the OS) exists: windows.properties, linux.properties or osx.properties.

Open the file for the respective OS (Windows = windows.properties usw.) and modify the section "# The folder for logging". Remove the "#" in front of the path #logdirectory=... . Modify the path if required. Always use "/" instead of "\" (regardless of OS). "#" marks the start of a comment - any subsequent characters on the same line will be ignored.

The transportable version has no *.properties files. You need to add the #logdirectory=... line in the fiole settings.prop . settings.prop is located in ./settings/<VERSION>/ in the TV-Browser (transportable) directory.

Some Samples

Windows

logdirectory=C:/

or

logdirectory=${user.home}/TV-Browser

Linux

logdirectory=/home/bodum/

Once activated the log file tvbrowser.log will be created in the specified directory. This file will be overwritten on every start.


Deactivation

To deactivate logging the respective line must be commented out by prepending "#" .