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 SLF4JLogger. 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
LocalizedMarkeris automatically constructed with the correspondingLocalizedMessageto be logged and passed to the underlying SLF4JLogger. 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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalizedLoggercreateSubCategory(String subCategory)Returns a localized logger as subcategory of existing logger.voiddebug(String msg)Logs a message at DEBUG level.voiddebug(String format, Object a1)Logs a message at DEBUG level.voiddebug(String format, Object... args)Logs a message at DEBUG level.voiddebug(String format, Object a1, Object a2)Logs a message at DEBUG level.voiddebug(String format, Object a1, Object a2, Object a3)Logs a message at DEBUG level.voiddebugException(Throwable t)Logs a message at DEBUG level with provided exception.voiderror(LocalizableMessage m)Logs an error message.voiderror(LocalizableMessageDescriptor.Arg0 d)Logs an error message.<T1> voiderror(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)Logs an error message.<T1,T2>
voiderror(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)Logs an error message.<T1,T2,T3>
voiderror(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)Logs an error message.<T1,T2,T3,T4>
voiderror(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)Logs an error message.<T1,T2,T3,T4,T5>
voiderror(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)Logs an error message.<T1,T2,T3,T4,T5,T6>
voiderror(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.<T1,T2,T3,T4,T5,T6,T7>
voiderror(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.<T1,T2,T3,T4,T5,T6,T7,T8>
voiderror(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.<T1,T2,T3,T4,T5,T6,T7,T8,T9>
voiderror(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.voiderror(LocalizableMessageDescriptor.ArgN d, Object... args)Logs an error message.LocalegetLocale()Returns the locale to which this logger will localize all log messages.static LocalizedLoggergetLocalizedLoggerFromCategory(String categoryName)Returns the localized logger corresponding to the provided category name.org.slf4j.LoggergetLogger()Returns the underlying SLF4JLoggerwrapped by this logger.longgetMask()Returns the bit mask associated to this logger.StringgetName()Returns the name of this logger.static longgetOrCreateCategoryMask(String categoryName)Returns the mask associated to the given category name.static LocalizedLoggergetOrCreateLocalizedLogger(String categoryName)Creates a localized logger with the provided category name, or returns it if it already exists.List<String>getSubCategories()Returns the list of subcategories of this logger.voidinfo(LocalizableMessage m)Logs a message at INFO level.voidinfo(LocalizableMessageDescriptor.Arg0 d)Logs a message at INFO level.<T1> voidinfo(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)Logs a message at INFO level.<T1,T2>
voidinfo(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)Logs a message at INFO level.<T1,T2,T3>
voidinfo(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)Logs a message at INFO level.<T1,T2,T3,T4>
voidinfo(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)Logs a message at INFO level.<T1,T2,T3,T4,T5>
voidinfo(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)Logs a message at INFO level.<T1,T2,T3,T4,T5,T6>
voidinfo(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.<T1,T2,T3,T4,T5,T6,T7>
voidinfo(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.<T1,T2,T3,T4,T5,T6,T7,T8>
voidinfo(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.<T1,T2,T3,T4,T5,T6,T7,T8,T9>
voidinfo(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.voidinfo(LocalizableMessageDescriptor.ArgN d, Object... args)Logs a message at INFO level.booleanisDebugEnabled()Returnstrueif this logger will log messages at DEBUG level.booleanisErrorEnabled()Returnstrueif this logger will log error messages.booleanisInfoEnabled()Returnstrueif this logger will log messages at INFO level.booleanisNoteEnabled()Returnstrueif this logger will log messages at NOTICE level.booleanisWarnEnabled()Returnstrueif this logger will log warning messages.voidnote(LocalizableMessage m)Logs a message at NOTICE level.voidnote(LocalizableMessageDescriptor.Arg0 d)Logs a message at NOTICE level.<T1> voidnote(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)Logs a message at NOTICE level.<T1,T2>
voidnote(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)Logs a message at NOTICE level.<T1,T2,T3>
voidnote(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)Logs a message at NOTICE level.<T1,T2,T3,T4>
voidnote(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)Logs a message at NOTICE level.<T1,T2,T3,T4,T5>
voidnote(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)Logs a message at NOTICE level.<T1,T2,T3,T4,T5,T6>
voidnote(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.<T1,T2,T3,T4,T5,T6,T7>
voidnote(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.<T1,T2,T3,T4,T5,T6,T7,T8>
voidnote(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.<T1,T2,T3,T4,T5,T6,T7,T8,T9>
voidnote(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.voidnote(LocalizableMessageDescriptor.ArgN d, Object... args)Logs a message at NOTICE level.voidwarn(LocalizableMessage m)Logs a warning message.voidwarn(LocalizableMessageDescriptor.Arg0 d)Logs a warning message.<T1> voidwarn(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)Logs a warning message.<T1,T2>
voidwarn(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)Logs a warning message.<T1,T2,T3>
voidwarn(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)Logs a warning message.<T1,T2,T3,T4>
voidwarn(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)Logs a warning message.<T1,T2,T3,T4,T5>
voidwarn(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)Logs a warning message.<T1,T2,T3,T4,T5,T6>
voidwarn(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.<T1,T2,T3,T4,T5,T6,T7>
voidwarn(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.<T1,T2,T3,T4,T5,T6,T7,T8>
voidwarn(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.<T1,T2,T3,T4,T5,T6,T7,T8,T9>
voidwarn(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.voidwarn(LocalizableMessageDescriptor.ArgN d, Object... args)Logs a warning message.
-
-
-
Method Detail
-
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 callinggetOrCreateLocalizedLogger(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
LocalizedLoggerfor 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:
Logger.error(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)
-
error
public void error(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs an error message.- Parameters:
d- The message descriptor.args- The message arguments.- See Also:
Logger.error(String)
-
error
public void error(LocalizableMessage m)
Logs an error message.- Parameters:
m- The pre-formatted message.- 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 org.slf4j.Logger getLogger()
Returns the underlying SLF4JLoggerwrapped by this logger.- Returns:
- The underlying SLF4J
Loggerwrapped by this logger.
-
getName
public String getName()
Returns the name of this logger.- Returns:
- The name of this logger.
- See Also:
Logger.getName()
-
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()
Returnstrueif this logger will log messages at INFO level.- Returns:
trueif this logger will log messages at INFO level, otherwisefalse.
-
isErrorEnabled
public boolean isErrorEnabled()
Returnstrueif this logger will log error messages.- Returns:
trueif this logger will log error messages, otherwisefalse.- See Also:
Logger.isErrorEnabled()
-
isNoteEnabled
public boolean isNoteEnabled()
Returnstrueif this logger will log messages at NOTICE level.- Returns:
trueif this logger will log messages at NOTICE level, otherwisefalse.
-
isDebugEnabled
public boolean isDebugEnabled()
Returnstrueif this logger will log messages at DEBUG level.- Returns:
trueif this logger will log messages at DEBUG level, otherwisefalse.- See Also:
Logger.isTraceEnabled()
-
isWarnEnabled
public boolean isWarnEnabled()
Returnstrueif this logger will log warning messages.- Returns:
trueif this logger will log warning messages, otherwisefalse.- See Also:
Logger.isWarnEnabled()
-
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 withjava.util.Formatterrulesa1- 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 withjava.util.Formatterrulesa1- 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 withjava.util.Formatterrulesa1- 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 withjava.util.Formatterrulesargs- The message arguments.
-
warn
public void warn(LocalizableMessageDescriptor.Arg0 d)
Logs a warning message.- Parameters:
d- The message descriptor.- See Also:
Logger.warn(String)
-
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)
-
warn
public void warn(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs a warning message.- Parameters:
d- The message descriptor.args- The message arguments.- See Also:
Logger.warn(String)
-
warn
public void warn(LocalizableMessage m)
Logs a warning message.- Parameters:
m- The pre-formatted message.- See Also:
Logger.warn(String)
-
-