How do I specify the logging level?

Resource Image

You can specify the amount of logging detail that is recorded in the logging file.

There are five logging levels:

  • Debug
  • Info
  • Warn
  • Error
  • Fatal

Each logging message is assigned a level of importance, and these are reflected in these levels. For example, Debug stores all logging messages, whereas Fatal only stores application-critical logging messages. By default, the logging level is set to Warn.

To change the level of logging, edit the logging.config file as follows:

  1. Open logging.conf in Notepad or another text editor.
  2. Search for the string: <level value="WARN" />
  3. Change the WARN parameter to one of the above levels, for example, <level value="FATAL" />.
  4. Save the file.