how
is the log4j-configuration file generated ?

the configuration-file for
log4j is generated by merging the provided header file, trailer file
and the text generated by configLog4j.
this approach gives you lots of flexibility since you can edit the header
file (defining appenders, conversion pattern etc.) as you like.
the trailer file would only be needed for the xml-config file but is
used for consistency also when generating the properties config file
how is configLog4j configured
?
configLog4j is configured
by a properties file - a path to which you pass on the command line.
within this prop file the paths to header, trailer, target file etc
are specified.
|