The configuration of log4j is held in two files:
- In log4j.xml: This is the standard configuration file
- In jfw.properties: This is the configuration file of JFW.
See "HOW TO : WEBAPP > jfw.properties".
Here is the part of log4j.xml
The value of param "File
" is the path and the name
of the log file. If the path does not exist it has to be created manually.
Also a logger has to be defined:
The name of the logger ("file
" in this example) will be used in jfw.properties
If you use the daily rolling appender (as in the previous example) you can use the
for deleting the old log files.
See "HOW TO : WEBAPP > jfw.properties"