Class LocalizedLogger

java.lang.Object
org.forgerock.i18n.slf4j.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.

Each logger has a name and represents a category (there is a one-to-one correspondence between logger and category). The logger may have sub-categories which have their own logger.

The logger provides the following logging levels: error, warn, note, info, debug.

  • Method Details

    • getMask

      public long getMask()
      Returns the bit mask associated to this logger.
      Returns:
      the mask associated to this logger.
    • getLocalizedLoggerFromCategory

      public static LocalizedLogger getLocalizedLoggerFromCategory(String categoryName)
      Returns the localized logger corresponding to the provided category name. To create missing logger category names, consider calling getOrCreateLocalizedLogger(String).
      Parameters:
      categoryName - an existing category name.
      Returns:
      the localized logger corresponding to the provided category name.
    • getOrCreateLocalizedLogger

      public static LocalizedLogger getOrCreateLocalizedLogger(String categoryName)
      Creates a localized logger with the provided category name, or returns it if it already exists.

      There is a limit on number of loggers that can be created (due to the use of bit mask based on a long for optimization), consider using an existing category name before creating a new one.

      Parameters:
      categoryName - the category name
      Returns:
      a localized logger with the provided category name.
      Throws:
      IllegalStateException - if too many loggers are created
    • getOrCreateCategoryMask

      public static long getOrCreateCategoryMask(String categoryName)
      Returns the mask associated to the given category name.

      If the mask does not exists yet, a LocalizedLogger for the category is created in order to compute a mask and return it.

      Parameters:
      categoryName - a category name.
      Returns:
      the mask associated to the given category name.
    • createSubCategory

      public LocalizedLogger createSubCategory(String subCategory)
      Returns a localized logger as subcategory of existing logger.
      Parameters:
      subCategory - the sub-category name
      Returns:
      the sub-category localized logger
    • getSubCategories

      public List<String> getSubCategories()
      Returns the list of subcategories of this logger.
      Returns:
      the list of subcategories of this logger.
    • info

      public void info(LocalizableMessageDescriptor.Arg0 d)
      Logs a message at INFO level.
      Parameters:
      d - The message descriptor.
    • info

      public <T1> void info(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)
      Logs a message at INFO level.
      Type Parameters:
      T1 - The type of the first message argument.
      Parameters:
      d - The message descriptor.
      a1 - The first message argument.
    • info

      public <T1, T2> void info(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)
      Logs a message at INFO level.
      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.
    • info

      public <T1, T2, T3> void info(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)
      Logs a message at INFO level.
      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.
    • info

      public <T1, T2, T3, T4> void info(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)
      Logs a message at INFO level.
      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.
    • 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 a message at INFO level.
      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.
    • 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 a message at INFO level.
      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.
    • 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 a message at INFO level.
      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.
    • 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 a message at INFO level.
      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.
    • 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 a message at INFO level.
      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.
    • info

      public void info(LocalizableMessageDescriptor.ArgN d, Object... args)
      Logs a message at INFO level.
      Parameters:
      d - The message descriptor.
      args - The message arguments.
    • info

      public void info(LocalizableMessage m)
      Logs a message at INFO level.
      Parameters:
      m - The pre-formatted message.
    • error

      public void error(LocalizableMessageDescriptor.Arg0 d)
      Logs an error message.
      Parameters:
      d - The message descriptor.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • error

      public void error(LocalizableMessageDescriptor.ArgN d, Object... args)
      Logs an error message.
      Parameters:
      d - The message descriptor.
      args - The message arguments.
      See Also:
    • error

      public void error(LocalizableMessage m)
      Logs an error message.
      Parameters:
      m - The pre-formatted message.
      See Also:
    • 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:
    • note

      public void note(LocalizableMessageDescriptor.Arg0 d)
      Logs a message at NOTICE level.
      Parameters:
      d - The message descriptor.
    • note

      public <T1> void note(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)
      Logs a message at NOTICE level.
      Type Parameters:
      T1 - The type of the first message argument.
      Parameters:
      d - The message descriptor.
      a1 - The first message argument.
    • note

      public <T1, T2> void note(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)
      Logs a message at NOTICE level.
      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.
    • note

      public <T1, T2, T3> void note(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)
      Logs a message at NOTICE level.
      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.
    • note

      public <T1, T2, T3, T4> void note(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)
      Logs a message at NOTICE level.
      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.
    • note

      public <T1, T2, T3, T4, T5> void note(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
      Logs a message at NOTICE level.
      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.
    • note

      public <T1, T2, T3, T4, T5, T6> void note(LocalizableMessageDescriptor.Arg6<T1,T2,T3,T4,T5,T6> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)
      Logs a message at NOTICE level.
      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.
    • note

      public <T1, T2, T3, T4, T5, T6, T7> void note(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 message at NOTICE level.
      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.
    • note

      public <T1, T2, T3, T4, T5, T6, T7, T8> void note(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 message at NOTICE level.
      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.
    • note

      public <T1, T2, T3, T4, T5, T6, T7, T8, T9> void note(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 message at NOTICE level.
      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.
    • note

      public void note(LocalizableMessageDescriptor.ArgN d, Object... args)
      Logs a message at NOTICE level.
      Parameters:
      d - The message descriptor.
      args - The message arguments.
    • note

      public void note(LocalizableMessage m)
      Logs a message at NOTICE level.
      Parameters:
      m - The pre-formatted message.
    • isInfoEnabled

      public boolean isInfoEnabled()
      Returns true if this logger will log messages at INFO level.
      Returns:
      true if this logger will log messages at INFO level, otherwise false.
    • 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:
    • isNoteEnabled

      public boolean isNoteEnabled()
      Returns true if this logger will log messages at NOTICE level.
      Returns:
      true if this logger will log messages at NOTICE level, otherwise false.
    • isDebugEnabled

      public boolean isDebugEnabled()
      Returns true if this logger will log messages at DEBUG level.
      Returns:
      true if this logger will log messages at DEBUG level, otherwise false.
      See Also:
    • 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:
    • debug

      public void debug(String msg)
      Logs a message at DEBUG level.
      Parameters:
      msg - The message.
    • debugException

      public void debugException(Throwable t)
      Logs a message at DEBUG level with provided exception.
      Parameters:
      t - The exception.
    • debug

      public void debug(String format, Object a1)
      Logs a message at DEBUG level.
      Parameters:
      format - The message format, compatible with java.util.Formatter rules
      a1 - The first message argument.
    • debug

      public void debug(String format, Object a1, Object a2)
      Logs a message at DEBUG level.
      Parameters:
      format - The message format, compatible with java.util.Formatter rules
      a1 - The first message argument.
      a2 - The second message argument.
    • debug

      public void debug(String format, Object a1, Object a2, Object a3)
      Logs a message at DEBUG level.
      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.
    • debug

      public void debug(String format, Object... args)
      Logs a message at DEBUG level.
      Parameters:
      format - The message format, compatible with java.util.Formatter rules
      args - The message arguments.
    • warn

      public void warn(LocalizableMessageDescriptor.Arg0 d)
      Logs a warning message.
      Parameters:
      d - The message descriptor.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • warn

      public void warn(LocalizableMessageDescriptor.ArgN d, Object... args)
      Logs a warning message.
      Parameters:
      d - The message descriptor.
      args - The message arguments.
      See Also:
    • warn

      public void warn(LocalizableMessage m)
      Logs a warning message.
      Parameters:
      m - The pre-formatted message.
      See Also: