com.ebmwebsourcing.easycommons.logger
Class LoggerHelper

java.lang.Object
  extended by com.ebmwebsourcing.easycommons.logger.LoggerHelper

public final class LoggerHelper
extends java.lang.Object

Author:
aruffie Class util which provide several helping methods

Method Summary
static java.util.List<java.util.logging.Handler> getHandlersOrParentHanders(java.util.logging.Logger logger)
          Get the handlers of a logger and the handlers owned by its parent if it sends its output to its parent
static java.util.logging.Level getLevelOrParentLevel(java.util.logging.Logger logger)
          Get the level of a logger or the level owned by its parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLevelOrParentLevel

public static final java.util.logging.Level getLevelOrParentLevel(java.util.logging.Logger logger)
Get the level of a logger or the level owned by its parent.

Parameters:
logger - a logger
Returns:
the level of the logger or the level owned by its parent.

getHandlersOrParentHanders

public static final java.util.List<java.util.logging.Handler> getHandlersOrParentHanders(java.util.logging.Logger logger)
Get the handlers of a logger and the handlers owned by its parent if it sends its output to its parent

Parameters:
logger - a logger
Returns:
the list of handlers of a logger and the handlers owned by its parent if it sends its output to its parent


Copyright © 2012 Petals Link. All Rights Reserved.