org.apache.cocoon.core.container.spring.logger
Class LoggerUtils

java.lang.Object
  extended byorg.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.
 
Constructor Summary
LoggerUtils()
           
 
Method Summary
static Log getChildLogger(BeanFactory factory, String category)
          Create a child logger based on the logger configured in the Spring bean factory.
static Log getChildLogger(ServiceManager manager, String category)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER_ROLE

public static final String LOGGER_ROLE
Bean name for the logger factory returning commons logging Log.

See Also:
Constant Field Values
Constructor Detail

LoggerUtils

public LoggerUtils()
Method Detail

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 factory
category - 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.