On Thu, 21 Aug 2003 21:14:14 +0200, "Roland Jernej" wrote:

> 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
> 

In addition to configuring the appender as you have done above, you must also
configure a logger with the name medigs that logs using the appender you want,
and I see you have also named this medigs. 

Harald

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to