Question:
How to activate the logging in UT Click Before You Dig?
Answer:
Any errors that occur in the UT Click Before You Dig application are logged in the log files of Tomcat. These are located under %TOMCAT-HOME%/logs. Decisive files are stdout_%datum%.log.
Furthermore, log files are written to the directory <BauAuskunft>\BauAuskunftService\WEB-INF\logs. The configuration is done in the configuration File log4j2.xml. The available log files are described in section Configuration File log4j2.xml in the documentation.
In most cases it is sufficiently to set the log level for Root to DEBUG, which affects the log file cbyd.log
<Root level="debug">
<AppenderRef ref="UT_CBYD_FILE" />
</Root>
For certain issues it might be necessary to adapt the log level also for other loggers.
Valid log levels are:
- OFF (no logging)
- FATAL
- ERROR
- WARN
- INFO
- DEBUG
- TRACE
- ALL (full logging)
If the logfiles exceed the maximum size they will be archived in subfolder as a ZIP file. The subfolders will be named as follows: [Year]-[Month], e.g. 2017-03. Archived files which are older than 90 days will be deleted from disk.
Please keep also in mind that many log messages can have a bad influence on performance.
You can configure the logging behavior individually. Further information on how to configure log4j2.xml can be found under the following address: https://logging.apache.org/log4j/2.x/
Tipp: The main reasons for bugs are usually missing connections to the required components:
For this reason, please make sure that these connections are available. |
Comments
0 comments
Please sign in to leave a comment.