org.apache.jetspeed.services.logging
Class JetspeedLogFactoryService

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.JetspeedLogFactoryService
All Implemented Interfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.Service

public class JetspeedLogFactoryService
extends org.apache.turbine.services.TurbineBaseService

The default implementation of the logging service in Jetspeed. This service initializes the underlying logging implementation, and acts as a factory for loggers. The current implementation uses Log4J.

Author:
Harald Ommang
See Also:
LogManager, Logger

Field Summary
 java.lang.String SERVICE_NAME
           
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, name, properties, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Constructor Summary
JetspeedLogFactoryService()
          Default constructor
 
Method Summary
static JetspeedLogger getLogger(java.lang.String loggerName)
          The actual Factory method that gets the appropriate logger from Log4j and wraps it in a JetspeedLogger
 void init()
          Initializes the service by getting the servlet configuration from Turbine
 void init(javax.servlet.ServletConfig config)
          Initializes the service with the given configuration Initializes the underlying logging implementation, Log4J
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init, shutdown
 
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.Initable
getInit, setInitableBroker
 

Field Detail

SERVICE_NAME

public java.lang.String SERVICE_NAME
Constructor Detail

JetspeedLogFactoryService

public JetspeedLogFactoryService()
Default constructor

Method Detail

init

public void init()
          throws org.apache.turbine.services.InitializationException
Initializes the service by getting the servlet configuration from Turbine

Throws:
org.apache.turbine.services.InitializationException - Initialization failed

init

public void init(javax.servlet.ServletConfig config)
          throws org.apache.turbine.services.InitializationException
Initializes the service with the given configuration Initializes the underlying logging implementation, Log4J

Parameters:
config - The ServletConfiguration from Turbine
Throws:
org.apache.turbine.services.InitializationException - Initialization failed

getLogger

public static JetspeedLogger getLogger(java.lang.String loggerName)
The actual Factory method that gets the appropriate logger from Log4j and wraps it in a JetspeedLogger



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