org.apache.webbeans.logger
Class WebBeansLoggerFacade

java.lang.Object
  extended by org.apache.webbeans.logger.WebBeansLoggerFacade

public final class WebBeansLoggerFacade
extends Object

Wrapper class around the JUL logger class to include some checks before the logs are actually written.

Actually, it is a thin layer on the JUL Logger implementation.

Version:
$Rev$ $Date$

Field Summary
static String OPENWEBBEANS_LOGGING_FACTORY_PROP
           
 
Constructor Summary
WebBeansLoggerFacade()
           
 
Method Summary
static Object[] args(Object... values)
           
static String constructMessage(String messageKey, Object... args)
           
static Logger getLogger(Class<?> clazz)
          Gets the new web beans logger instance.
static Logger getLogger(Class<?> clazz, Locale desiredLocale)
          Gets the new web beans logger instance.
static String getTokenString(String messageKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPENWEBBEANS_LOGGING_FACTORY_PROP

public static final String OPENWEBBEANS_LOGGING_FACTORY_PROP
See Also:
Constant Field Values
Constructor Detail

WebBeansLoggerFacade

public WebBeansLoggerFacade()
Method Detail

getLogger

public static Logger getLogger(Class<?> clazz)
Gets the new web beans logger instance.

Parameters:
clazz - own the return logger
Returns:
new logger

getLogger

public static Logger getLogger(Class<?> clazz,
                               Locale desiredLocale)
Gets the new web beans logger instance.

Parameters:
clazz - own the return logger
desiredLocale - Locale used to select the Message resource bundle.
Returns:
new logger

constructMessage

public static String constructMessage(String messageKey,
                                      Object... args)

getTokenString

public static String getTokenString(String messageKey)

args

public static Object[] args(Object... values)


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.