geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hearty <heartyraph...@gmail.com>
Subject Configuring log4j as jvm environment variable fails
Date Fri, 07 Nov 2008 10:40:50 GMT

I have tried the below 2 options of setting my fp-log4j.properties.
Both these options fails. I am not able to see log files created.

SET
JAVA_OPTS=-Dlog4j.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties

SET
JAVA_OPTS=-Dorg.apache.geronimo.log4jservice.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties

These envionment variable I've specified from a command prompt and I've run
start-server command from the same instance.

My fp-log4j.properties is as follows

#attach an appender to the base apacheds package logger:
log4j.logger.org.apache.directory=INFO,fp
#do not log apacheds to geronimo logs:
log4j.additivity.org.apache.directory=false


#Configure the fp specific appender:
log4j.appender.fp=org.apache.log4j.DailyRollingFileAppender
log4j.appender.fp.layout=org.apache.log4j.PatternLayout
# geronimo style logging
log4j.appender.fp.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n

log4j.appender.fp.append=true
log4j.appender.fp.file=${org.apache.geronimo.server.dir}/var/log/fp.log
log4j.appender.fp.bufferedIO=false


#focal point specific log settings
log4j.logger.com.telelogic.focalpoint=DEBUG
log4j.logger.com.telelogic.focalpoint.dao.jdbc.Jdbc=OFF
log4j.logger.com.telelogic.focalpoint.dao.ViewExecutor=OFF
log4j.logger.org.apache.catalina=INFO      
log4j.logger.org.springframework=INFO
log4j.logger.net.sf.ehcache.distribution=INFO

Please advice me where I went wrong
-- 
View this message in context: http://www.nabble.com/Configuring-log4j-as-jvm-environment-variable-fails-tp20378195s134p20378195.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message