org.apache.jetspeed.services.logging
Class JetspeedLoggingService

java.lang.Object
  extended byorg.apache.turbine.services.BaseInitable
      extended byorg.apache.turbine.services.BaseService
          extended byorg.apache.turbine.services.TurbineBaseService
              extended byorg.apache.jetspeed.services.logging.JetspeedLoggingService
All Implemented Interfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.logging.LoggingService, org.apache.turbine.services.Service

public class JetspeedLoggingService
extends org.apache.turbine.services.TurbineBaseService
implements org.apache.turbine.services.logging.LoggingService

This service now only functions as an interim implementation of Turbine's LoggingService. In order to facilitate the new Log4J logging in Jetspeed, the default logging service behavior of Turbine must be overridden. The JetspeedLoggingService now just reroutes to JetspeedLogFactoryService

Version:
$Id: JetspeedLoggingService.java,v 1.4 2004/02/23 03:33:29 jford Exp $
Author:
Mark Orciuch, Harald Ommang
See Also:
JetspeedLogFactoryService

Field Summary
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, properties, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Fields inherited from interface org.apache.turbine.services.logging.LoggingService
SERVICE_NAME
 
Constructor Summary
JetspeedLoggingService()
           
 
Method Summary
 void debug(java.lang.String message)
          This is a log method with logLevel == DEBUG, printing is done by the default logger
 void debug(java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == DEBUG, printing is done by the default logger
 void debug(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == DEBUG, printing is done by the default logger
 void debug(java.lang.String logName, java.lang.String message)
          This is a log method with logLevel == DEBUG, printing is done by the given logger
 void debug(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == DEBUG, printing is done by the given logger
 void debug(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == DEBUG, printing is done by the given logger
 void debug(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == DEBUG, printing is done by the given logger
 void debug(java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == DEBUG, printing is done by the default logger
 void error(java.lang.String message)
          This is a log method with logLevel == ERROR, printing is done by the default logger
 void error(java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == ERROR, printing is done by the default logger
 void error(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == ERROR, printing is done by the default logger
 void error(java.lang.String logName, java.lang.String message)
          This is a log method with logLevel == ERROR, printing is done by the given logger
 void error(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == ERROR, printing is done by the given logger
 void error(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == ERROR, printing is done by the given logger
 void error(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == ERROR, printing is done by the given logger
 void error(java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == ERROR, printing is done by the default logger
 org.apache.turbine.services.logging.Logger getLogger()
          This method returns default logger for Turbine System
 org.apache.turbine.services.logging.Logger getLogger(java.lang.String logName)
          This method returns logger with given name.
 org.apache.turbine.services.resources.ResourceService getResources()
          This gets the ResourceService associated to this Service
 void info(java.lang.String message)
          This is a log method with logLevel == INFO, printing is done by the default logger
 void info(java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == INFO, printing is done by the default logger
 void info(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == INFO,printing is done by the default logger
 void info(java.lang.String logName, java.lang.String message)
          This is a log method with logLevel == INFO, printing is done by the given logger
 void info(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == INFO, printing is done by the given logger
 void info(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == INFO, printing is done by the given logger
 void info(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == INFO, printing is done by the given logger
 void info(java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == INFO, printing is done by the default logger
 void init()
          Load all configured components and initialize them.
 void init(javax.servlet.ServletConfig config)
          Inits the service using servlet parameters to obtain path to the configuration file.
 void setFormat(java.lang.String format)
          This method sets format style of the default logger
 void setFormat(java.lang.String logName, java.lang.String format)
          This method sets format style of the given logger.
 void setLogLevel(int level)
          This method sets the log level of the default logger.
 void setLogLevel(java.lang.String logName, int level)
          This method sets the log level of the logger of given name.
 void shutdown()
          Shutdowns all loggers.
 void warn(java.lang.String message)
          This is a log method with logLevel == WARN, printing is done by the default logger
 void warn(java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == WARN,printing is done by the default logger
 void warn(java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == WARN, printing is done by the default logger
 void warn(java.lang.String logName, java.lang.String message)
          This is a log method with logLevel == WARN, printing is done by the given logger
 void warn(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data)
          This is a log method with logLevel == WARN, printing is done by the given logger
 void warn(java.lang.String logName, java.lang.String message, org.apache.turbine.util.RunData data, java.lang.Throwable t)
          This is a log method with logLevel == WARN, printing is done by the given logger
 void warn(java.lang.String logName, java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == WARN, printing is done by the given logger
 void warn(java.lang.String message, java.lang.Throwable t)
          This is a log method with logLevel == WARN, printing is done by the default logger
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, setInitableBroker
 

Constructor Detail

JetspeedLoggingService

public JetspeedLoggingService()
Method Detail

init

public void init()
          throws org.apache.turbine.services.InitializationException
Load all configured components and initialize them. This is a zero parameter variant which queries the Turbine Servlet for its config.

Specified by:
init in interface org.apache.turbine.services.Initable
Throws:
org.apache.turbine.services.InitializationException - Something went wrong in the init stage

init

public void init(javax.servlet.ServletConfig config)
          throws org.apache.turbine.services.InitializationException
Inits the service using servlet parameters to obtain path to the configuration file. Change relatives paths.

Parameters:
config - The ServletConfiguration from Turbine
Throws:
org.apache.turbine.services.InitializationException - Something went wrong when starting up.

getResources

public org.apache.turbine.services.resources.ResourceService getResources()
This gets the ResourceService associated to this Service


shutdown

public void shutdown()
Shutdowns all loggers. After shutdown servlet logger is still available using the servlet log method

Specified by:
shutdown in interface org.apache.turbine.services.Initable

getLogger

public final org.apache.turbine.services.logging.Logger getLogger()
This method returns default logger for Turbine System

Specified by:
getLogger in interface org.apache.turbine.services.logging.LoggingService

getLogger

public org.apache.turbine.services.logging.Logger getLogger(java.lang.String logName)
This method returns logger with given name.

Specified by:
getLogger in interface org.apache.turbine.services.logging.LoggingService

setLogLevel

public void setLogLevel(int level)
This method sets the log level of the default logger.

Specified by:
setLogLevel in interface org.apache.turbine.services.logging.LoggingService

setLogLevel

public void setLogLevel(java.lang.String logName,
                        int level)
This method sets the log level of the logger of given name.

Specified by:
setLogLevel in interface org.apache.turbine.services.logging.LoggingService

setFormat

public void setFormat(java.lang.String format)
This method sets format style of the default logger

Specified by:
setFormat in interface org.apache.turbine.services.logging.LoggingService

setFormat

public void setFormat(java.lang.String logName,
                      java.lang.String format)
This method sets format style of the given logger.

Specified by:
setFormat in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String message)
This is a log method with logLevel == DEBUG, printing is done by the default logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String message,
                  java.lang.Throwable t)
This is a log method with logLevel == DEBUG, printing is done by the default logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String logName,
                  java.lang.String message,
                  java.lang.Throwable t)
This is a log method with logLevel == DEBUG, printing is done by the given logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String logName,
                  java.lang.String message)
This is a log method with logLevel == DEBUG, printing is done by the given logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String message,
                  org.apache.turbine.util.RunData data)
This is a log method with logLevel == DEBUG, printing is done by the default logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String message,
                  org.apache.turbine.util.RunData data,
                  java.lang.Throwable t)
This is a log method with logLevel == DEBUG, printing is done by the default logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String logName,
                  java.lang.String message,
                  org.apache.turbine.util.RunData data,
                  java.lang.Throwable t)
This is a log method with logLevel == DEBUG, printing is done by the given logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

debug

public void debug(java.lang.String logName,
                  java.lang.String message,
                  org.apache.turbine.util.RunData data)
This is a log method with logLevel == DEBUG, printing is done by the given logger

Specified by:
debug in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String message)
This is a log method with logLevel == INFO, printing is done by the default logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String message,
                 java.lang.Throwable t)
This is a log method with logLevel == INFO, printing is done by the default logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String logName,
                 java.lang.String message)
This is a log method with logLevel == INFO, printing is done by the given logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String logName,
                 java.lang.String message,
                 java.lang.Throwable t)
This is a log method with logLevel == INFO, printing is done by the given logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String message,
                 org.apache.turbine.util.RunData data)
This is a log method with logLevel == INFO, printing is done by the default logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String message,
                 org.apache.turbine.util.RunData data,
                 java.lang.Throwable t)
This is a log method with logLevel == INFO,printing is done by the default logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String logName,
                 java.lang.String message,
                 org.apache.turbine.util.RunData data)
This is a log method with logLevel == INFO, printing is done by the given logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

info

public void info(java.lang.String logName,
                 java.lang.String message,
                 org.apache.turbine.util.RunData data,
                 java.lang.Throwable t)
This is a log method with logLevel == INFO, printing is done by the given logger

Specified by:
info in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String message)
This is a log method with logLevel == WARN, printing is done by the default logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String message,
                 java.lang.Throwable t)
This is a log method with logLevel == WARN, printing is done by the default logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String logName,
                 java.lang.String message)
This is a log method with logLevel == WARN, printing is done by the given logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String logName,
                 java.lang.String message,
                 java.lang.Throwable t)
This is a log method with logLevel == WARN, printing is done by the given logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String message,
                 org.apache.turbine.util.RunData data)
This is a log method with logLevel == WARN,printing is done by the default logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String message,
                 org.apache.turbine.util.RunData data,
                 java.lang.Throwable t)
This is a log method with logLevel == WARN, printing is done by the default logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String logName,
                 java.lang.String message,
                 org.apache.turbine.util.RunData data)
This is a log method with logLevel == WARN, printing is done by the given logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

warn

public void warn(java.lang.String logName,
                 java.lang.String message,
                 org.apache.turbine.util.RunData data,
                 java.lang.Throwable t)
This is a log method with logLevel == WARN, printing is done by the given logger

Specified by:
warn in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String message)
This is a log method with logLevel == ERROR, printing is done by the default logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String message,
                  java.lang.Throwable t)
This is a log method with logLevel == ERROR, printing is done by the default logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String logName,
                  java.lang.String message)
This is a log method with logLevel == ERROR, printing is done by the given logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String logName,
                  java.lang.String message,
                  java.lang.Throwable t)
This is a log method with logLevel == ERROR, printing is done by the given logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String message,
                  org.apache.turbine.util.RunData data)
This is a log method with logLevel == ERROR, printing is done by the default logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String message,
                  org.apache.turbine.util.RunData data,
                  java.lang.Throwable t)
This is a log method with logLevel == ERROR, printing is done by the default logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String logName,
                  java.lang.String message,
                  org.apache.turbine.util.RunData data)
This is a log method with logLevel == ERROR, printing is done by the given logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService

error

public void error(java.lang.String logName,
                  java.lang.String message,
                  org.apache.turbine.util.RunData data,
                  java.lang.Throwable t)
This is a log method with logLevel == ERROR, printing is done by the given logger

Specified by:
error in interface org.apache.turbine.services.logging.LoggingService


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.