org.apache.cocoon.core.container.spring.logger
Class LoggerUtils
java.lang.Object
org.apache.cocoon.core.container.spring.logger.LoggerUtils
- public class LoggerUtils
- extends Object
Commons Logging logger utilities.
- Since:
- 2.2
- Version:
- $Id: LoggerUtils.html 1304280 2012-03-23 11:18:01Z ilgrosso $
Field Summary |
static String |
LOGGER_ROLE
Bean name for the logger factory returning commons logging Log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER_ROLE
public static final String LOGGER_ROLE
- Bean name for the logger factory returning commons logging Log.
- See Also:
- Constant Field Values
LoggerUtils
public LoggerUtils()
getChildLogger
public static Log getChildLogger(BeanFactory factory,
String category)
- Create a child logger based on the logger configured in the Spring bean factory.
- Parameters:
factory
- Current Spring bean factorycategory
- Desired logger sub category
- Returns:
- Logger for the child category of current bean factory configured logger.
getChildLogger
public static Log getChildLogger(ServiceManager manager,
String category)
throws ServiceException
- Deprecated.
- Throws:
ServiceException
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.