You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Nicolas <nl...@bregenzer.org> on 2003/11/23 13:00:15 UTC
Logging
hi
how can i strip the log to warn in
velocity.log and the Torque debug in turbine.log and catalina.out
i'm using tdk 2.2.
it's also strange that log4j.properties doesn't seem to get processed.
there is no torque.log created
regards nicolas
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: Logging
Posted by Nicolas <nl...@bregenzer.org>.
Nicolas wrote:
> how can i strip the log to warn in
> velocity.log and the Torque debug in turbine.log and catalina.out
> i'm using tdk 2.2.
>
> it's also strange that log4j.properties doesn't seem to get processed.
> there is no torque.log created
it's was quite simple the log4j.properties have to be in classes. then
you can successfully modify torque with
log4j.category.org.apache.torque = WARN, org.apache.torque
log4j.appender.org.apache.torque = org.apache.log4j.FileAppender
log4j.appender.org.apache.torque.file = ${applicationRoot}/logs/torque.log
log4j.appender.org.apache.torque.layout = org.apache.log4j.PatternLayout
log4j.appender.org.apache.torque.layout.conversionPattern = %d [%t] %-5p
%c- %m%n
log4j.appender.org.apache.torque.append = false
velocity is a bit tricky
first in TR.prop
services.VelocityService.runtime.log.logsystem.class =
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
services.VelocityService.runtime.log.logsystem.log4j.category=velocity
then in log4j
log4j.category.velocity = WARN, velocity
log4j.additivity.velocity = false
log4j.appender.velocity = org.apache.log4j.FileAppender
log4j.appender.velocity.file = ${applicationRoot}/logs/velocity.log
log4j.appender.velocity.layout = org.apache.log4j.PatternLayout
log4j.appender.velocity.layout.conversionPattern = %d [%t] %-5p %c - %m%n
log4j.appender.velocity.append = false
. nicolas
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org