Setting_the_log_level

Allan Cunliffe

This procedure describes how to change the log level in Xena. It involves changing the Java user preferences in your system. Changes made will affect the level of output displayed in the console, the View Log output in the graphical user interface, and the content of the Xena log recorded in the Xena log directory (set via Xena Preferences).

There are seven standard log levels, ranging from FINEST (the lowest priority, with the lowest value) to SEVERE (the highest priority, with the highest value). The levels in descending order are:

  • SEVERE (highest value)
  • WARNING
  • INFO
  • CONFIG
  • FINE
  • FINER
  • FINEST (lowest value)

You can also switch off logging with a value of OFF.

Windows

1. Edit the system registry by running the command:

regedit

2. Alter the log level data value under: HKEY_CURRENT_USER - Software - JavaSoft - Prefs - au - gov - naa - digipres - xena - litegui - loglevel

Note: To enter a valid log level value, you must enter each character in uppercase and escape each character with a backslash. For example, to set the value of OFF, you must enter: /O/F/F.

Linux

1. Edit the prefs.xml file located in: /home/<user>/.java/.userPrefs/au/gov/naa/digipres/xena/litegui/

2. Set the value of loglevel to your desired setting.

An example of the prefs.xml file set to record at the FINE level is shown below:

<map MAP_XML_VERSION="1.0">

<entry key="dir/lastvisited" value="/home/al/Documents/Technical_Doco/files_that_can_be_used_for_testing/DocoSamples"/>

<entry key="dir/xenadest" value="/home/al/Xena/Destination"/>

<entry key="dir/xenalog" value="/home/al/Xena/Logs"/>

<entry key="loglevel" value="FINE"/>

</map>


Related

Wiki: Main_Page

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks