Difference between revisions of "Activate Logging"

From TV-Browser Wiki
Jump to: navigation, search
 
 
(5 intermediate revisions by 4 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 TV-Browser folder there 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 now need to open the file for your OS (Windows = windows.properties ...) and you need to add the folder to save your file. 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 00:16, 3 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 "#" .