org.apache.jetspeed.services.logging
Class JetspeedLogFactoryService
java.lang.Object
org.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.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
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
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 |
SERVICE_NAME
public java.lang.String SERVICE_NAME
JetspeedLogFactoryService
public JetspeedLogFactoryService()
- Default constructor
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.