You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Roland Jernej <ro...@aon.at> on 2003/08/05 23:03:37 UTC
Logging into seperate log file
Hi everyone!
log4j.properties:
log4j.appender.medigs = org.apache.log4j.FileAppender
log4j.appender.medigs.file = ${webappRoot}/WEB-INF/log/medigs.log
log4j.appender.medigs.layout = org.apache.log4j.PatternLayout
log4j.appender.medigs.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.medigs.append = false
the medigs.log file exists and is empty.
if i log out with the following source lines:
Log.warn("medigs","Berechtigungsproblem Uploadversuch für Patient von
User: " + myju.getUserName());
the logging is always done to jetspeed.log file with:
[05 Aug 2003 22:53:45 WARN] - FROM logger:medigs: Berechtigungsproblem
Uploadversuch für Patient von User: turbine
How can i configure log4j to use the medigs.log file?
Thanks for your help!
Roland Jernej
http://www.medigs.com