# The Phex Logging

#### for Phex 0.7 and later

For the logging the following keys in your phex.cfg are responsible:

- mLogFile
  The complete file name you like to log to.
  e.g.: c:\phex\logOutput.txt
  If not set then the path {user.home}/phex/phex.log or {user.home}/.phex/phex.log is used
- maxLogFileLength
  The maximal log file length in bytes. If the file is larger then this size the file is renamed to
  {original file name}.1
  The old backup of the file is overwritten.
- logToConsole
  Activates or deactivate logging to console additionally to file logging. Possible values are true or false.
  On Windows logging to console only works when Phex is not started with javaw.
- loggerVerboseLevel
  There are 7 different logger verbose levels. From 0 (finest) to 6 (severe).
  The possible levels are FINEST (0), FINER (1), FINE (2), CONFIG (3), INFO (4), WARNING (5), SEVERE (6)
- logType
  The log type indicates what kind of messages you like to log. The possible types are:
  DOWNLOAD (2), UPLOAD (4), SEARCH (8), NETWORK (16), GUI (32), GLOBAL
  GLOBAL messages are always logged if inside the verbose level. To log the different types just add the numbers.
  e.g.: to log download and network set the log type to 18 (2 + 16) or to log upload, search and gui set the log type to 44 (4 + 8 + 32)

Copyright © 2001, 2006 The Phex Team, License: GPL-2 or later.