Author: tchemit Date: 2012-07-01 15:38:56 +0200 (Sun, 01 Jul 2012) New Revision: 200 Url: http://chorem.org/repositories/revision/chorem/200 Log: add a real log file Modified: trunk/chorem-webmotion/pom.xml trunk/chorem-webmotion/src/main/resources/log4j.properties Modified: trunk/chorem-webmotion/pom.xml =================================================================== --- trunk/chorem-webmotion/pom.xml 2012-07-01 12:56:13 UTC (rev 199) +++ trunk/chorem-webmotion/pom.xml 2012-07-01 13:38:56 UTC (rev 200) @@ -223,6 +223,12 @@ <webAppConfig> <contextPath>/chorem</contextPath> </webAppConfig> + <systemProperties> + <systemProperty> + <name>chorem.log.dir</name> + <value>${basedir}/target</value> + </systemProperty> + </systemProperties> </configuration> </plugin> @@ -232,6 +238,9 @@ <configuration> <path>/chorem</path> <uriEncoding>UTF-8</uriEncoding> + <systemProperties> + <chorem.log.dir>${basedir}/target</chorem.log.dir> + </systemProperties> </configuration> </plugin> @@ -241,6 +250,9 @@ <configuration> <path>/chorem</path> <uriEncoding>UTF-8</uriEncoding> + <systemProperties> + <chorem.log.dir>${basedir}/target</chorem.log.dir> + </systemProperties> </configuration> </plugin> </plugins> Modified: trunk/chorem-webmotion/src/main/resources/log4j.properties =================================================================== --- trunk/chorem-webmotion/src/main/resources/log4j.properties 2012-07-01 12:56:13 UTC (rev 199) +++ trunk/chorem-webmotion/src/main/resources/log4j.properties 2012-07-01 13:38:56 UTC (rev 200) @@ -1,34 +1,19 @@ -### -# #%L -# bow -# -# $Id$ -# $HeadURL$ -# %% -# Copyright (C) 2010 CodeLutin -# %% -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. -# #L% -### # Global logging configuration -log4j.rootLogger=INFO, stdout +log4j.rootLogger=INFO, stdout, file # Console output... log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d %5p [%t] (%F:%L) %M - %m%n +# FileAppender : need to have chorem.log.dir in system properties at application startup +log4j.appender.file=org.apache.log4j.RollingFileAppender +log4j.appender.file.File=${chorem.log.dir}/chorem.log +log4j.appender.file.MaxFileSize=10MB +log4j.appender.file.MaxBackupIndex=4 +log4j.appender.file.layout=org.apache.log4j.PatternLayout +log4j.appender.file.layout.ConversionPattern=%d{yyyy/MM/dd hh:mm:ss} %5p (%F:%L) %m%n + # package level log4j.logger.org.chorem=DEBUG log4j.logger.org.nuiton=INFO
participants (1)
-
tchemit@users.chorem.org