You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Ronny Walter <ma...@freenet.de> on 2003/05/20 22:26:38 UTC
Logging
Hello Jetspeed-Users,
I try to activate logging for 3 hours now. It's the best time to ask the
mailinglist, i think. :-)
I don't have any log-messages at the console and I don't have a file
called jetspeed.log in the WEB-INF/log folder. What is the problem?
Perhaps you need further information about my configuration. I post you
the logging section in the TurbineResources.properties.
Thank you very much.
Greetings Ronny
-------
services.LoggingService.facilities=system,debug,security,rotation,logfor
j,access
services.LoggingService.default=logforj
services.LoggingService.loggingConfig=org.apache.turbine.services.loggin
g.PropertiesLoggingConfig
# A facility for system logging.
services.LoggingService.system.destination.file=/WEB-INF/log/jetspeed.lo
g
services.LoggingService.system.className=org.apache.turbine.services.log
ging.FileLogger
services.LoggingService.system.level=DEBUG
# A facility for the scheduler service
# To disable started/stopped messages set the level to ERROR
services.LoggingService.scheduler.destination.file=/WEB-INF/log/jetspeed
.log
services.LoggingService.scheduler.className=org.apache.turbine.services.
logging.FileLogger
services.LoggingService.scheduler.level=DEBUG
# A facility for debugging applications. Messages will go both
# to the log file and the server console.
services.LoggingService.debug.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.debug.destination.console=true
services.LoggingService.debug.className=org.apache.turbine.services.logg
ing.FileLogger
services.LoggingService.debug.level=DEBUG
# A facility for SQL query logging
# To enable SQL query logging, set the level to DEBUG
services.LoggingService.sql.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.sql.className=org.apache.turbine.services.loggin
g.FileLogger
services.LoggingService.sql.level=DEBUG
# A facility for security audit. NOTE! As of 23 Jan 2001
# Turbine does not have any standard security auditing
# functionality. It's up to your application.
services.LoggingService.security.destination.file=/WEB-INF/log/jetspeed.
log
services.LoggingService.security.className=org.apache.turbine.services.l
ogging.FileLogger
services.LoggingService.security.level=DEBUG
# An example configuration for using Log4Java, with log4j properties
inline
# The category name - at the end of this line - needs to match the
logging facility name - the first log4j.
# need this rootCategory entry to capture the torque/fulcrum etc logging
services.LoggingService.logforj.log4j.rootCategory = INFO, logforj
# need this category entry for the actual jetspeed logging (I don't know
why it doesn't get covered by the root category!)
services.LoggingService.logforj.log4j.category.logforj = DEBUG, logforj
services.LoggingService.logforj.log4j.appender.logforj.file
=${webappRoot}/WEB-INF/log/jetspeed.log
services.LoggingService.logforj.log4j.appender.logforj =
org.apache.log4j.FileAppender
services.LoggingService.logforj.log4j.appender.logforj.layout =
org.apache.log4j.PatternLayout
services.LoggingService.logforj.log4j.appender.logforj.layout.conversion
Pattern = [%d{dd MMM yyyy HH:mm:ss} %5p] - %m%n
services.LoggingService.logforj.log4j.appender.logforj.append = false
services.LoggingService.logforj.className=org.apache.turbine.services.lo
gging.Log4JavaLogger
services.LoggingService.logforj.level=DEBUG
# An example configuration for portlet access audit logging
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.ConversionPa
ttern = %m%n
services.LoggingService.access.log4j.appender.access.append = true
services.LoggingService.access.log4j.appender.access.file =
${webappRoot}/WEB-INF/log/access.log
services.LoggingService.access.className =
org.apache.turbine.services.logging.Log4JavaLogger
services.LoggingService.access.level = INFO
# An example configuration for automatic log rotation using Log4Java
# This will keep the log file size under 1MB and save up to 5 backup
copies
services.LoggingService.rotation.destination.file=/WEB-INF/log/jetspeed.
log
services.LoggingService.rotation.file.size=1048576
services.LoggingService.rotation.file.backups=5
services.LoggingService.rotation.className=org.apache.turbine.services.l
ogging.Log4JavaLogger
services.LoggingService.rotation.level=DEBUG
# An example configuration for using *NIX syslogd with Log4Java
services.LoggingService.syslog.destination.syslogd.host=my.syslog.server
.com
services.LoggingService.syslog.destination.syslogd.facility=LOG_DAEMON
services.LoggingService.syslog.className=org.apache.turbine.services.log
ging.Log4JavaLogger
services.LoggingService.syslog.level=INFO
# An example configuration for using remote Log4Java server
services.LoggingService.remote.destination.remote.host=my.remote.server.
com
services.LoggingService.remote.destination.remote.port=1099
services.LoggingService.remote.className=org.apache.turbine.services.log
ging.Log4JavaLogger
services.LoggingService.remote.level=INFO
# An example configuration for sending error reports as email with
Log4Java
# notes:
# * uses 'mail.server' as SMTP server to send mail through
# * log4j will send the email when an ERROR is logged, with
# 'buffer.size' previous (non-ERROR) logs included in the email
# * configured to log to a file as well otherwise stacktraces are lost
services.LoggingService.email.destination.file=/WEB-INF/log/jetspeed.log
services.LoggingService.email.destination.email.from=root@localhost
services.LoggingService.email.destination.email.to=root@localhost
services.LoggingService.email.destination.email.subject=Jetspeed Error
Report
services.LoggingService.email.destination.email.buffer.size=512
services.LoggingService.email.className=org.apache.turbine.services.logg
ing.Log4JavaLogger
services.LoggingService.email.level=INFO
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org