portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Orciuch" <mark_orci...@ngsltd.com>
Subject RE: Configuring another log4j logger
Date Tue, 27 Aug 2002 14:36:24 GMT
Werner,

Yes, that does work now. I guess I did not follow the "logforj" example very
well :-( And yes, I meant tr.props. Thanks a lot for your help!

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


> -----Original Message-----
> From: Werner Ramaekers [mailto:werner@shiftat.com]
> Sent: Tuesday, August 27, 2002 2:40 AM
> To: Jetspeed Developers List
> Subject: Re: Configuring another log4j logger
>
>
> Mark,
>
> Mark Orciuch wrote:
>
> >I would like to configure additional log4j logger in jr.props.
> This logger
> >would write to a separate log file and use custom conversion
> pattern (%m%n).
> >I tried variety of configurations including the one below:
> >
> jr.properties ? i hope you mean TurbineResources.properties and not
> JetspeedResources.properties because the logging
> configurations are in the TurbineResources.properties.
>
> >
> >services.LoggingService.facilities=system,debug,security,rotation
> ,logforj,sq
> >l,access
> >
> >services.LoggingService.access.log4j.rootCategory = INFO, access
> >
> >services.LoggingService.access.log4j.category.access = INFO, access
> >
> >services.LoggingService.access.log4j.appender.access =
> >org.apache.log4j.FileAppender
> >services.LoggingService.access.log4j.appender.access.layout =
> >org.apache.log4j.PatternLayout
> >services.LoggingService.access.log4j.appender.access.layout.Conve
> rsionPatter
> >n = %m%n
> >services.LoggingService.access.log4j.appender.access.append = true
> >
> you need to change
>
> >services.LoggingService.access.destination.file=/WEB-INF/log/access.log
> >
> to
> services.LoggingService.access.log4j.appender.access.file=${webapp
> Root}/WEB-INF/log/access.log
> an then it works for me
>
> Hope it works for you too ;-)
>
> Werner
>
> --
> ----------------------------------------------------------------------
> ir. Werner Ramaekers
> Enterprise Java Solutions Architect - Shift@
> Sun Certified Java Programmer
>
> "May the source be with you."
> <mailto:werner@shiftat.com> <http://www.shiftat.com>
> ----------------------------------------------------------------------
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:jetspeed-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message