org.apache.jetspeed.container.services.log
Class PlutoLogService
java.lang.Object
org.apache.jetspeed.container.services.log.PlutoLogService
- All Implemented Interfaces:
- org.apache.pluto.services.ContainerService, org.apache.pluto.services.log.LogService
public class PlutoLogService
- extends Object
- implements org.apache.pluto.services.log.LogService
Implements the logging service adaptor for the Pluto container
adapting Jetspeed logging service implemented in Commons to Pluto
NOTE: this implementation may have performance issues
since everytime we call isSomethingEnabled, we must get a logger
I recommend deprecated Pluto's logging container service and
this adaptor once we get the Pluto source in Apache's CVS
- Version:
- $Id: PlutoLogService.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- David Sean Taylor
Field Summary |
private static org.apache.commons.logging.Log |
defaultLog
|
Method Summary |
private org.apache.commons.logging.Log |
getConfiguredLogger(Class classe)
Given a string class name returns a logger for that class, or if we can't find a logger for the class
the it returns the default logger for this class |
private org.apache.commons.logging.Log |
getConfiguredLogger(String className)
Given a string class name returns a logger for that class, or if we can't find a logger for the class
the it returns the default logger for this class |
org.apache.pluto.services.log.Logger |
getLogger(Class klass)
|
org.apache.pluto.services.log.Logger |
getLogger(String component)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultLog
private static final org.apache.commons.logging.Log defaultLog
PlutoLogService
public PlutoLogService()
getLogger
public org.apache.pluto.services.log.Logger getLogger(String component)
- Specified by:
getLogger
in interface org.apache.pluto.services.log.LogService
getLogger
public org.apache.pluto.services.log.Logger getLogger(Class klass)
- Specified by:
getLogger
in interface org.apache.pluto.services.log.LogService
getConfiguredLogger
private org.apache.commons.logging.Log getConfiguredLogger(String className)
- Given a string class name returns a logger for that class, or if we can't find a logger for the class
the it returns the default logger for this class
- Parameters:
className
-
- Returns:
- Log The logger configured for the given class name or the default logger if failed to load class
getConfiguredLogger
private org.apache.commons.logging.Log getConfiguredLogger(Class classe)
- Given a string class name returns a logger for that class, or if we can't find a logger for the class
the it returns the default logger for this class
- Parameters:
classe
- the class to get a logger for
- Returns:
- Log The logger configured for the given class name or the default logger if failed to load class
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.