OS: Win-XP
J2SDK 1.4.1
Turbine 2.1
Log4j 1.2.8
Net-Beans 3.4
Hi,
I'm newbie in Turbine & Log4j.
We want to log with our own defined format.
So i configure the "Logging.services" in the "Turbine.properties" so:
"
services.LoggingService.system.destination.file=/logs/turbine.log
services.LoggingService.system.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.system.level=DEBUG
.
.
.
services.LoggingService.logforj.log4j.category.logforj = DEBUG, logforj
services.LoggingService.logforj.destination.file=/logs/turbine.log
services.LoggingService.logforj.destination.console=true
services.LoggingService.logforj.log4j.logforj = org.apache.log4j.FileAppender
services.LoggingService.logforj.log4j.logforj.file = /logs/turbine.log
services.LoggingService.logforj.log4j.logforj.layout = org.apache.log4j.PatternLayout
services.LoggingService.logforj.log4j.logforj.layout.ConversionPattern =
[%d{dd.MMMyyyy HH:mm:ss} %5p] (%F:%L) - %m%n
services.LoggingService.logforj.log4j.logforj.append = false
services.LoggingService.logforj.className =
org.apache.turbine.services.logging.Log4JavaLogger
"
The results look like the new "ConversionPattern" DOESN'T CONVERT the Log statement in
my own defined format.
I remarq that when i change the "services.LoggingService.logforj.className" statement
from : "org.apache.turbine.services.logging.FileLogger"
to : "org.apache.turbine.services.logging.Log4JavaLogger"
the PatternLayout have been changed.
Can u help me, please.
Thanks in advance.
Jess
-------------
SPECIAL ADSL
L'ADSL � partir de 15,95 EUR/mois et le modem ADSL offert ? C'est en exclusivit� chez
Tiscali !
Pour profiter de cette offre, cliquez ici: http://register.tiscali.fr/adsl/
Offre soumise � conditions.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]