Adds a log4j2 configuration. The old one is fully compatible.

Changes the build-hooks.xml to copy the new configuration into the WEB-INF directory, which
is the first place log4j2 searches for files.

git-svn-id: https://svn.libreccm.org/ccm/trunk@4961 8810af33-2d31-482b-a856-94f89814c4df
master
baka 2017-08-30 11:30:00 +00:00
parent e85570b745
commit 34a0918c92
2 changed files with 3 additions and 4 deletions

View File

@ -53,9 +53,8 @@
unless="this.deploy.dir" />
<!-- deploy the log4j configuration file into the web applications
document root tree -->
<mkdir dir="${this.deploy.dir}/WEB-INF/conf"/>
<copy todir="${this.deploy.dir}/WEB-INF/conf"
file="${src.dir}/log4j.properties"/>
<copy todir="${this.deploy.dir}/WEB-INF"
file="${src.dir}/log4j2.properties"/>
<!-- project.xml moved to bundle cfg directory where it replaces
former application.cfg -->
<xslt style="${ccm.tools.xsl.dir}/build-version.xsl"

View File

@ -1,5 +1,5 @@
# To customize logging, copy this file to
# $CCM_HOME/WEB-INF/conf/log4j.properties and edit it appropriately.
# $CCM_HOME/WEB-INF/log4j2.properties and edit it appropriately.
# Choose one of the following lines, or make up your own...
#log4j.rootCategory=WARN, console, file