org.apache.webbeans.logger
Class WebBeansLoggerFacade
java.lang.Object
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$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OPENWEBBEANS_LOGGING_FACTORY_PROP
public static final String OPENWEBBEANS_LOGGING_FACTORY_PROP
- See Also:
- Constant Field Values
WebBeansLoggerFacade
public WebBeansLoggerFacade()
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 loggerdesiredLocale - 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.