ATTENTION! For new versions (fom 1.Juli, 2022) we moved to logback and the config file is found in org.slf4j.api
Remark: See below, if you are are developing with source code.
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:
- 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.slf4jfeature and open the
log4j2.xmlfile and skip the next steps until step 5.
- Go to: plugins
- Go to: de.uniol.inf.is.odysseus.slf4j_[some version number]
- Open File: log4j2.xml
- Find line:
- Change the line to:
Remark: See official Log4j2 documentation for further informtion.
There is also the
log4j2.test.xml file where you can find examples to define the logger for each feature individually.
Example for an additional file appender
If you want to add an file appender next to the console appender, you need to add an appender and an an appender reference to the log4j2.xml file as follows:
Further Error Messages
Add the following file to you working directory of Odysseus to see further error messages.
Logging inside Eclipse
If you are developing with eclipse you have the following options to configure the logging.
1) In project de.uniol.inf.is.odysseus.slf4j there are some samples files for logging. If you want to change the kind of logging, you could rename one the file to log4j.xml.
2) Another way, is to change the parameter in the product under "Launching" definition with
-Dlog4j.configurationFile=<path to logfile>