Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you are developing Odysseus or using the downloaded product, you can custumize the logging behavior. To enable extended logging in the downloaded product do the following:

  1. Go to main directory of the installed Odysseus. If you are developing in Odysseus with Eclipse, you can go to the de.uniol.inf.is.odysseus.slf4j feature and open the log4j2.xml file and skip the next steps until step 5.
  2. Go to: plugins
  3. Go to: de.uniol.inf.is.odysseus.slf4j_

...

  1. [some version number]
  2. Open File:

...

  1. log4j2.

...

  1. xml

...

  1. Find line:
Code Block
languagetext
log4j.rootLogger=DEBUG, default

...

<Root level="warn">
  • Change the line to:
Code Block
languagetext
log4j.rootLogger=DEBUG, default, default2<Root level="debug">

Remark: If the line is ERROR, default, change also to DEBUG, default, default2

...

. If you now run Odysseus, after the start a new file output.log

...

 is created in your Odysseus start directory. Here, further logging information can be found.

...

Remark: Possible you have to add the following lines, too:

Code Block
log4j.appender.default2=org.apache.log4j.FileAppender
log4j.appender.default2.threshold=DEBUG
log4j.appender.default2.file=output.log

There is also the log4j2.test.xml file where you can find examples to define the logger for each feature individually.

Further Error Messages

Add the following file to you working directory of Odysseus to see further error messages.

...