You can set log levels by modifying either the template or the log configuration file. However, if you only modify the configuration file, any changes you make will be overwritten the next time you run configure. To prevent this, you should make your changes to both the configuration file and the template.
By default, this file is stored in the following location:
For each component, specify the maximum size for the component's log file.
For example, to set the size for the server log file:
Where A1 is the default appender ID for the server, max-logfile-size is in MB, for example 5MB.
Repeat the procedure for the configuration file log4j.conf.