Class LocalizedLogger


  • public final class LocalizedLogger
    extends Object
    A logger implementation which formats and localizes messages before forwarding them to an underlying SLF4J Logger. For performance reasons this implementation will only localize and format messages if logging has been enabled for the associated log level and marker (if present).

    If no marker is provided, a LocalizedMarker is automatically constructed with the corresponding LocalizedMessage to be logged and passed to the underlying SLF4J Logger. This allow a custom implementation of SLF4J logger adapter to retrieve the complete localizable message when logging.

    • Method Detail

      • getLocalizedLogger

        public static LocalizedLogger getLocalizedLogger​(Class<?> clazz)
        Returns a localized logger which will forward log messages to an SLF4J Logger obtained by calling LoggerFactory.getLogger(Class) . The messages will be localized using the default locale.
        Parameters:
        clazz - The name of the wrapped SLF4J Logger.
        Returns:
        The localized logger.
        See Also:
        LoggerFactory.getLogger(Class)
      • getLocalizedLogger

        public static LocalizedLogger getLocalizedLogger​(Logger logger)
        Returns a localized logger which will forward log messages to the provided SLF4J Logger. The messages will be localized using the default locale.
        Parameters:
        logger - The wrapped SLF4J Logger.
        Returns:
        The localized logger.
        See Also:
        LoggerFactory.getLogger(String)
      • getLoggerForThisClass

        public static LocalizedLogger getLoggerForThisClass()
        Returns a localized logger with a name corresponding to calling class name. The logger will forward log messages to an SLF4J Logger obtained by calling LoggerFactory.getLogger(String). The messages will be localized using the default locale.
        Returns:
        The localized logger using calling class name as its name
        See Also:
        LoggerFactory.getLogger(String)
      • debug

        public <T1> void debug​(LocalizableMessageDescriptor.Arg1<T1> d,
                               T1 a1)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2> void debug​(LocalizableMessageDescriptor.Arg2<T1,​T2> d,
                                        T1 a1,
                                        T2 a2)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3> void debug​(LocalizableMessageDescriptor.Arg3<T1,​T2,​T3> d,
                                                 T1 a1,
                                                 T2 a2,
                                                 T3 a3)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3,​T4> void debug​(LocalizableMessageDescriptor.Arg4<T1,​T2,​T3,​T4> d,
                                                          T1 a1,
                                                          T2 a2,
                                                          T3 a3,
                                                          T4 a4)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3,​T4,​T5> void debug​(LocalizableMessageDescriptor.Arg5<T1,​T2,​T3,​T4,​T5> d,
                                                                   T1 a1,
                                                                   T2 a2,
                                                                   T3 a3,
                                                                   T4 a4,
                                                                   T5 a5)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3,​T4,​T5,​T6> void debug​(LocalizableMessageDescriptor.Arg6<T1,​T2,​T3,​T4,​T5,​T6> d,
                                                                            T1 a1,
                                                                            T2 a2,
                                                                            T3 a3,
                                                                            T4 a4,
                                                                            T5 a5,
                                                                            T6 a6)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7> void debug​(LocalizableMessageDescriptor.Arg7<T1,​T2,​T3,​T4,​T5,​T6,​T7> d,
                                                                                     T1 a1,
                                                                                     T2 a2,
                                                                                     T3 a3,
                                                                                     T4 a4,
                                                                                     T5 a5,
                                                                                     T6 a6,
                                                                                     T7 a7)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void debug​(LocalizableMessageDescriptor.Arg8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> d,
                                                                                              T1 a1,
                                                                                              T2 a2,
                                                                                              T3 a3,
                                                                                              T4 a4,
                                                                                              T5 a5,
                                                                                              T6 a6,
                                                                                              T7 a7,
                                                                                              T8 a8)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        See Also:
        Logger.debug(String)
      • debug

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void debug​(LocalizableMessageDescriptor.Arg9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> d,
                                                                                                       T1 a1,
                                                                                                       T2 a2,
                                                                                                       T3 a3,
                                                                                                       T4 a4,
                                                                                                       T5 a5,
                                                                                                       T6 a6,
                                                                                                       T7 a7,
                                                                                                       T8 a8,
                                                                                                       T9 a9)
        Logs a debug message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        T9 - The type of the ninth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        a9 - The ninth message argument.
        See Also:
        Logger.debug(String)
      • error

        public <T1> void error​(LocalizableMessageDescriptor.Arg1<T1> d,
                               T1 a1)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2> void error​(LocalizableMessageDescriptor.Arg2<T1,​T2> d,
                                        T1 a1,
                                        T2 a2)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3> void error​(LocalizableMessageDescriptor.Arg3<T1,​T2,​T3> d,
                                                 T1 a1,
                                                 T2 a2,
                                                 T3 a3)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3,​T4> void error​(LocalizableMessageDescriptor.Arg4<T1,​T2,​T3,​T4> d,
                                                          T1 a1,
                                                          T2 a2,
                                                          T3 a3,
                                                          T4 a4)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3,​T4,​T5> void error​(LocalizableMessageDescriptor.Arg5<T1,​T2,​T3,​T4,​T5> d,
                                                                   T1 a1,
                                                                   T2 a2,
                                                                   T3 a3,
                                                                   T4 a4,
                                                                   T5 a5)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3,​T4,​T5,​T6> void error​(LocalizableMessageDescriptor.Arg6<T1,​T2,​T3,​T4,​T5,​T6> d,
                                                                            T1 a1,
                                                                            T2 a2,
                                                                            T3 a3,
                                                                            T4 a4,
                                                                            T5 a5,
                                                                            T6 a6)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7> void error​(LocalizableMessageDescriptor.Arg7<T1,​T2,​T3,​T4,​T5,​T6,​T7> d,
                                                                                     T1 a1,
                                                                                     T2 a2,
                                                                                     T3 a3,
                                                                                     T4 a4,
                                                                                     T5 a5,
                                                                                     T6 a6,
                                                                                     T7 a7)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void error​(LocalizableMessageDescriptor.Arg8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> d,
                                                                                              T1 a1,
                                                                                              T2 a2,
                                                                                              T3 a3,
                                                                                              T4 a4,
                                                                                              T5 a5,
                                                                                              T6 a6,
                                                                                              T7 a7,
                                                                                              T8 a8)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        See Also:
        Logger.error(String)
      • error

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void error​(LocalizableMessageDescriptor.Arg9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> d,
                                                                                                       T1 a1,
                                                                                                       T2 a2,
                                                                                                       T3 a3,
                                                                                                       T4 a4,
                                                                                                       T5 a5,
                                                                                                       T6 a6,
                                                                                                       T7 a7,
                                                                                                       T8 a8,
                                                                                                       T9 a9)
        Logs an error message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        T9 - The type of the ninth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        a9 - The ninth message argument.
        See Also:
        Logger.error(String)
      • getLocale

        public Locale getLocale()
        Returns the locale to which this logger will localize all log messages.
        Returns:
        The locale to which this logger will localize all log messages.
      • getLogger

        public Logger getLogger()
        Returns the underlying SLF4J Logger wrapped by this logger.
        Returns:
        The underlying SLF4J Logger wrapped by this logger.
      • getName

        public String getName()
        Returns the name of this logger.
        Returns:
        The name of this logger.
        See Also:
        Logger.getName()
      • info

        public <T1> void info​(LocalizableMessageDescriptor.Arg1<T1> d,
                              T1 a1)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2> void info​(LocalizableMessageDescriptor.Arg2<T1,​T2> d,
                                       T1 a1,
                                       T2 a2)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3> void info​(LocalizableMessageDescriptor.Arg3<T1,​T2,​T3> d,
                                                T1 a1,
                                                T2 a2,
                                                T3 a3)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3,​T4> void info​(LocalizableMessageDescriptor.Arg4<T1,​T2,​T3,​T4> d,
                                                         T1 a1,
                                                         T2 a2,
                                                         T3 a3,
                                                         T4 a4)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3,​T4,​T5> void info​(LocalizableMessageDescriptor.Arg5<T1,​T2,​T3,​T4,​T5> d,
                                                                  T1 a1,
                                                                  T2 a2,
                                                                  T3 a3,
                                                                  T4 a4,
                                                                  T5 a5)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3,​T4,​T5,​T6> void info​(LocalizableMessageDescriptor.Arg6<T1,​T2,​T3,​T4,​T5,​T6> d,
                                                                           T1 a1,
                                                                           T2 a2,
                                                                           T3 a3,
                                                                           T4 a4,
                                                                           T5 a5,
                                                                           T6 a6)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7> void info​(LocalizableMessageDescriptor.Arg7<T1,​T2,​T3,​T4,​T5,​T6,​T7> d,
                                                                                    T1 a1,
                                                                                    T2 a2,
                                                                                    T3 a3,
                                                                                    T4 a4,
                                                                                    T5 a5,
                                                                                    T6 a6,
                                                                                    T7 a7)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void info​(LocalizableMessageDescriptor.Arg8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> d,
                                                                                             T1 a1,
                                                                                             T2 a2,
                                                                                             T3 a3,
                                                                                             T4 a4,
                                                                                             T5 a5,
                                                                                             T6 a6,
                                                                                             T7 a7,
                                                                                             T8 a8)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        See Also:
        Logger.info(String)
      • info

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void info​(LocalizableMessageDescriptor.Arg9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> d,
                                                                                                      T1 a1,
                                                                                                      T2 a2,
                                                                                                      T3 a3,
                                                                                                      T4 a4,
                                                                                                      T5 a5,
                                                                                                      T6 a6,
                                                                                                      T7 a7,
                                                                                                      T8 a8,
                                                                                                      T9 a9)
        Logs an info message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        T9 - The type of the ninth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        a9 - The ninth message argument.
        See Also:
        Logger.info(String)
      • isDebugEnabled

        public boolean isDebugEnabled()
        Returns true if this logger will log debug messages.
        Returns:
        true if this logger will log debug messages, otherwise false.
        See Also:
        Logger.isDebugEnabled()
      • isErrorEnabled

        public boolean isErrorEnabled()
        Returns true if this logger will log error messages.
        Returns:
        true if this logger will log error messages, otherwise false.
        See Also:
        Logger.isErrorEnabled()
      • isInfoEnabled

        public boolean isInfoEnabled()
        Returns true if this logger will log info messages.
        Returns:
        true if this logger will log info messages, otherwise false.
        See Also:
        Logger.isInfoEnabled()
      • isTraceEnabled

        public boolean isTraceEnabled()
        Returns true if this logger will log trace messages.
        Returns:
        true if this logger will log trace messages, otherwise false.
        See Also:
        Logger.isTraceEnabled()
      • isWarnEnabled

        public boolean isWarnEnabled()
        Returns true if this logger will log warning messages.
        Returns:
        true if this logger will log warning messages, otherwise false.
        See Also:
        Logger.isWarnEnabled()
      • traceException

        public void traceException​(Throwable t)
        Logs a trace message with provided exception.
        Parameters:
        t - The exception.
        See Also:
        Logger.trace(String)
      • trace

        public void trace​(String format,
                          Object a1)
        Logs a trace message.
        Parameters:
        format - The message format, compatible with java.util.Formatter rules
        a1 - The first message argument.
        See Also:
        Logger.trace(String)
      • traceException

        public void traceException​(Throwable t,
                                   String format,
                                   Object a1)
        Logs a trace message with an accompanying exception.
        Parameters:
        t - The throwable to log.
        format - The message format, compatible with java.util.Formatter rules
        a1 - The first message argument.
        See Also:
        Logger.trace(String, Throwable)
      • trace

        public void trace​(String format,
                          Object a1,
                          Object a2)
        Logs a trace message.
        Parameters:
        format - The message format, compatible with java.util.Formatter rules
        a1 - The first message argument.
        a2 - The second message argument.
        See Also:
        Logger.trace(String)
      • traceException

        public void traceException​(Throwable t,
                                   String format,
                                   Object a1,
                                   Object a2)
        Logs a trace message with an accompanying exception.
        Parameters:
        t - The throwable to log.
        format - The message format, compatible with java.util.Formatter rules
        a1 - The first message argument.
        a2 - The second message argument.
        See Also:
        Logger.trace(String, Throwable)
      • trace

        public void trace​(String format,
                          Object a1,
                          Object a2,
                          Object a3)
        Logs a trace message.
        Parameters:
        format - The message format, compatible with java.util.Formatter rules
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        See Also:
        Logger.trace(String)
      • traceException

        public void traceException​(Throwable t,
                                   String format,
                                   Object a1,
                                   Object a2,
                                   Object a3)
        Logs a trace message with an accompanying exception.
        Parameters:
        t - The throwable to log.
        format - The message format, compatible with java.util.Formatter rules
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        See Also:
        Logger.trace(String, Throwable)
      • trace

        public void trace​(String format,
                          Object... args)
        Logs a trace message.
        Parameters:
        format - The message format, compatible with java.util.Formatter rules
        args - The message arguments.
        See Also:
        Logger.trace(Marker, String)
      • traceException

        public void traceException​(Throwable t,
                                   String format,
                                   Object... args)
        Logs a trace message with an accompanying exception.
        Parameters:
        t - The throwable to log.
        format - The message format, compatible with java.util.Formatter rules
        args - The message arguments.
        See Also:
        Logger.trace(String, Throwable)
      • warn

        public <T1> void warn​(LocalizableMessageDescriptor.Arg1<T1> d,
                              T1 a1)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2> void warn​(LocalizableMessageDescriptor.Arg2<T1,​T2> d,
                                       T1 a1,
                                       T2 a2)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3> void warn​(LocalizableMessageDescriptor.Arg3<T1,​T2,​T3> d,
                                                T1 a1,
                                                T2 a2,
                                                T3 a3)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3,​T4> void warn​(LocalizableMessageDescriptor.Arg4<T1,​T2,​T3,​T4> d,
                                                         T1 a1,
                                                         T2 a2,
                                                         T3 a3,
                                                         T4 a4)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3,​T4,​T5> void warn​(LocalizableMessageDescriptor.Arg5<T1,​T2,​T3,​T4,​T5> d,
                                                                  T1 a1,
                                                                  T2 a2,
                                                                  T3 a3,
                                                                  T4 a4,
                                                                  T5 a5)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3,​T4,​T5,​T6> void warn​(LocalizableMessageDescriptor.Arg6<T1,​T2,​T3,​T4,​T5,​T6> d,
                                                                           T1 a1,
                                                                           T2 a2,
                                                                           T3 a3,
                                                                           T4 a4,
                                                                           T5 a5,
                                                                           T6 a6)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7> void warn​(LocalizableMessageDescriptor.Arg7<T1,​T2,​T3,​T4,​T5,​T6,​T7> d,
                                                                                    T1 a1,
                                                                                    T2 a2,
                                                                                    T3 a3,
                                                                                    T4 a4,
                                                                                    T5 a5,
                                                                                    T6 a6,
                                                                                    T7 a7)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> void warn​(LocalizableMessageDescriptor.Arg8<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8> d,
                                                                                             T1 a1,
                                                                                             T2 a2,
                                                                                             T3 a3,
                                                                                             T4 a4,
                                                                                             T5 a5,
                                                                                             T6 a6,
                                                                                             T7 a7,
                                                                                             T8 a8)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        See Also:
        Logger.warn(String)
      • warn

        public <T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> void warn​(LocalizableMessageDescriptor.Arg9<T1,​T2,​T3,​T4,​T5,​T6,​T7,​T8,​T9> d,
                                                                                                      T1 a1,
                                                                                                      T2 a2,
                                                                                                      T3 a3,
                                                                                                      T4 a4,
                                                                                                      T5 a5,
                                                                                                      T6 a6,
                                                                                                      T7 a7,
                                                                                                      T8 a8,
                                                                                                      T9 a9)
        Logs a warning message.
        Type Parameters:
        T1 - The type of the first message argument.
        T2 - The type of the second message argument.
        T3 - The type of the third message argument.
        T4 - The type of the fourth message argument.
        T5 - The type of the fifth message argument.
        T6 - The type of the sixth message argument.
        T7 - The type of the seventh message argument.
        T8 - The type of the eighth message argument.
        T9 - The type of the ninth message argument.
        Parameters:
        d - The message descriptor.
        a1 - The first message argument.
        a2 - The second message argument.
        a3 - The third message argument.
        a4 - The fourth message argument.
        a5 - The fifth message argument.
        a6 - The sixth message argument.
        a7 - The seventh message argument.
        a8 - The eighth message argument.
        a9 - The ninth message argument.
        See Also:
        Logger.warn(String)