Wow. It just so happens I have the same question. I
get this error when I hit my app when trying to use
log rotation and Log4JavaLogger:
log4j:ERROR No appenders could be found for category
(rotation).
log4j:ERROR Please initialize the log4j system
properly.
My props file is like the following:
services.LoggingService.facilities=DEV, rotation
services.LoggingService.default=rotation
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.PropertiesLoggingConfig
# A facility for debugging applications. Messages will
go both
# to the log file and the server console.
services.LoggingService.DEV.className=org.apache.turbine.services.logging.Log4JavaLogger
services.LoggingService.DEV.destination.file=/WEB-INF/log/turbine.log
services.LoggingService.DEV.destination.console=true
services.LoggingService.DEV.level=DEBUG
services.LoggingService.rotation.destination.file=/WEB-INF/log/turbine.log
services.LoggingService.rotation.className=org.apache.turbine.services.logging.Log4JavaLogger
services.LoggingService.rotation.file.size=1048576
services.LoggingService.rotation.file.backups=5
services.LoggingService.rotation.level=WARN
------8<----------
The DEV facility works fine if default is DEV.
-Peter
-----Original Message-----
From: Pere Torrodellas
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 9:18 AM
To: [EMAIL PROTECTED]
Subject: Turbine logging
Hello,
I've been trying to test some of the logging
facilities implied by the
LoggingService parms in TR.properties (TDK 2.1b4) and
the Log4JavaLogger
javaDoc without any success. In particular, I was
unable to see the log rotation
function in action, no matter what I specify in the
services.LoggingService.rotation.file.size property.
I looked for answers in the TDK docs, the Log4j docs
(in the Jakarta site), and
the mail list, but no luck.
Can someone please tell me if the logging TR
configuration in the TDK is ready
for use, or should some other property be
changed/specified?
Thanks,
Pere Torrodellas
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]