Logs are (text-) files that report the activities of the system. For example a report can be made when an error has occurred and why. This is particularly important for the technical support. If support is contacted because of an error, the source of the error can be found and eliminated.
The Logs are located within the JBoss directory :
...\server\default\log
Here, there are different Logs, depending on the configuration of the server:
It is possible to make some configurations according to the logs. This includes a list of which logs have to be created, the maximum size of a log file and how many log files can be created. If one of these values is exceeded, the oldest entries are deleted to make room for new. Adjustments can be made in the following file:
.../server/default/conf/jboss-log4j.xml
The configuration can be customized per log.
To restrict the maximum size of one of the log files, search for the following line in the file:
<param name="MaxFileSize" value="5000KB"/>
The value parameter can be used to determine the maximum size (in KB) of the file.
If a Log reaches the maximum size, a new file is created in which the log is continued. Changing the parameter can thus be used to control how many files are created before older files are deleted. To specify the maximum number of files, search for the following line:
<param name="MaxBackupIndex" value="20"/>
The value parameter determines the maximum number of files that can be created.