org.apache.jetspeed.logger
Interface JetspeedLoggerFactory


public interface JetspeedLoggerFactory

JetspeedLoggerFactory

Wrapper interface to a logger factory instance. By using this interface, common components can leave logs in the Jetspeed's logging context.

Version:
$Id: JetspeedLoggerFactory.java 893280 2009-12-22 19:24:19Z woonsan $

Method Summary
 JetspeedLogger getLogger(java.lang.Class<?> clazz)
          Returns a JetspeedLogger.
 JetspeedLogger getLogger(java.lang.String name)
          Returns a JetspeedLogger.
 

Method Detail

getLogger

JetspeedLogger getLogger(java.lang.Class<?> clazz)
Returns a JetspeedLogger.

Note: A component which wants to use JetspeedLogger must invoke this method whenever it tries to leave logs. The retrieved logger instance must not be kept for later use. Jetspeed container can be reloaded any time and it can make the old logger instances invalid.

Parameters:
clazz -
Returns:

getLogger

JetspeedLogger getLogger(java.lang.String name)
Returns a JetspeedLogger.

Note: A component which wants to use JetspeedLogger must invoke this method whenever it tries to leave logs. The retrieved logger instance must not be kept for later use. Jetspeed container can be reloaded any time and it can make the old logger instances invalid.

Parameters:
name -
Returns:


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.