Class 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$
    • 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)