You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Akshay Kapur <ak...@cisco.com> on 2002/08/07 05:40:21 UTC

Debug messages in Log

I am trying to use the DEBUG facility in Turbine. The settings are as per 
below. However I do not see the debug statements getting logged in the log 
file. Any ideas? Thanks, Akshay

My java code has the following code snippet -

import org.apache.turbine.util.Log;
...
...
...
Log.debug( "Hello World" );


TurbineResources.properties is as follows -

# -------------------------------------------------------------------
#
#  L O G S
#
# -------------------------------------------------------------------
# This is the configuration for the logging system. In most cases
# you don't need to modify anything. However, if you wish to add more
# facilities or modify the existing settings, then you can do so.
#
# destination.file: A path relative to the web app root
# -------------------------------------------------------------------
services.LoggingService.facilities=system,debug,security
services.LoggingService.default=system
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.PropertiesLoggingConfig

# A facility for system logging.
services.LoggingService.system.destination.file=/opt/httpd/logs/apps/sfcd/tomcat.log
services.LoggingService.system.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.system.level=DEBUG

# A facility for debugging applications. Messages will go both
# to the log file and the server console.
services.LoggingService.debug.destination.file=/opt/httpd/logs/apps/sfcd/tomcat.log
services.LoggingService.debug.destination.console=false
services.LoggingService.debug.className=org.apache.turbine.services.logging.FileLogger
services.LoggingService.debug.level=DEBUG