Difference between revisions of "Activate Logging"

From TV-Browser Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
To activate logging in TVBrowser a setting in the configuration file has to be made.
+
== Usage ==
 +
If you encounter errors that crash TV-Browser the log files can potentially provide useful error information to the developers.
  
In the TV-Browser folder are the files windows.properties, linux.properties and osx.properties.
+
== Activation ==
 +
Logging must be activated by modifying a configuration file. Logging cannot be activated in the [[Settings]].
  
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 "/".
+
In TV-Browsers Program Install directory one of the following files (depending on the OS) exists:
 +
''windows.properties'', ''linux.properties'' or ''osx.properties''.
  
Some examples:
+
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.
  
Windows:
+
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.
logdirectory=C:/
 
  
Linux:
+
==Some Samples==
logdirectory=/home/bodum/
+
===Windows===
 +
logdirectory=C:/
  
Now the log file will be created in the respective folder. It will be overwritten at every program start.
+
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 "#" .
 +
 
 +
 
 +
[[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 "#" .