Class LocalizedLogger
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 Summary
Modifier and TypeMethodDescriptioncreateSubCategory
(String subCategory) Returns a localized logger as subcategory of existing logger.void
Logs a message at DEBUG level.void
Logs a message at DEBUG level.void
Logs a message at DEBUG level.void
Logs a message at DEBUG level.void
Logs a message at DEBUG level.void
Logs a message at DEBUG level with provided exception.void
Logs an error message.void
Logs an error message.<T1> void
error
(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1) Logs an error message.<T1,
T2> void error
(LocalizableMessageDescriptor.Arg2<T1, T2> d, T1 a1, T2 a2) Logs an error message.<T1,
T2, T3> void error
(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.void
error
(LocalizableMessageDescriptor.ArgN d, Object... args) Logs an error message.Returns the locale to which this logger will localize all log messages.static LocalizedLogger
getLocalizedLoggerFromCategory
(String categoryName) Returns the localized logger corresponding to the provided category name.Returns the underlying SLF4JLogger
wrapped by this logger.long
getMask()
Returns the bit mask associated to this logger.getName()
Returns the name of this logger.static long
getOrCreateCategoryMask
(String categoryName) Returns the mask associated to the given category name.static LocalizedLogger
getOrCreateLocalizedLogger
(String categoryName) Creates a localized logger with the provided category name, or returns it if it already exists.Returns the list of subcategories of this logger.void
Logs a message at INFO level.void
Logs a message at INFO level.<T1> void
info
(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1) Logs a message at INFO level.<T1,
T2> void info
(LocalizableMessageDescriptor.Arg2<T1, T2> d, T1 a1, T2 a2) Logs a message at INFO level.<T1,
T2, T3> void info
(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.void
info
(LocalizableMessageDescriptor.ArgN d, Object... args) Logs a message at INFO level.boolean
Returnstrue
if this logger will log messages at DEBUG level.boolean
Returnstrue
if this logger will log error messages.boolean
Returnstrue
if this logger will log messages at INFO level.boolean
Returnstrue
if this logger will log messages at NOTICE level.boolean
Returnstrue
if this logger will log warning messages.void
Logs a message at NOTICE level.void
Logs a message at NOTICE level.<T1> void
note
(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1) Logs a message at NOTICE level.<T1,
T2> void note
(LocalizableMessageDescriptor.Arg2<T1, T2> d, T1 a1, T2 a2) Logs a message at NOTICE level.<T1,
T2, T3> void note
(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.void
note
(LocalizableMessageDescriptor.ArgN d, Object... args) Logs a message at NOTICE level.void
Logs a warning message.void
Logs a warning message.<T1> void
warn
(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1) Logs a warning message.<T1,
T2> void warn
(LocalizableMessageDescriptor.Arg2<T1, T2> d, T1 a1, T2 a2) Logs a warning message.<T1,
T2, T3> void warn
(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.void
warn
(LocalizableMessageDescriptor.ArgN d, Object... args) Logs a warning message.
-
Method Details
-
getMask
public long getMask()Returns the bit mask associated to this logger.- Returns:
- the mask associated to this logger.
-
getLocalizedLoggerFromCategory
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
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
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
Returns a localized logger as subcategory of existing logger.- Parameters:
subCategory
- the sub-category name- Returns:
- the sub-category localized logger
-
getSubCategories
Returns the list of subcategories of this logger.- Returns:
- the list of subcategories of this logger.
-
info
Logs a message at INFO level.- Parameters:
d
- The message descriptor.
-
info
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
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
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, void infoT3, T4> (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, void infoT3, T4, T5> (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, void infoT3, T4, T5, T6> (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, void infoT3, T4, T5, T6, T7> (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, void infoT3, T4, T5, T6, T7, T8> (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, void infoT3, T4, T5, T6, T7, T8, T9> (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
Logs a message at INFO level.- Parameters:
d
- The message descriptor.args
- The message arguments.
-
info
Logs a message at INFO level.- Parameters:
m
- The pre-formatted message.
-
error
Logs an error message.- Parameters:
d
- The message descriptor.- See Also:
-
error
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
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
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, void errorT3, T4> (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, void errorT3, T4, T5> (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, void errorT3, T4, T5, T6> (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, void errorT3, T4, T5, T6, T7> (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, void errorT3, T4, T5, T6, T7, T8> (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, void errorT3, T4, T5, T6, T7, T8, T9> (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
Logs an error message.- Parameters:
d
- The message descriptor.args
- The message arguments.- See Also:
-
error
Logs an error message.- Parameters:
m
- The pre-formatted message.- See Also:
-
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
Returns the underlying SLF4JLogger
wrapped by this logger.- Returns:
- The underlying SLF4J
Logger
wrapped by this logger.
-
getName
Returns the name of this logger.- Returns:
- The name of this logger.
- See Also:
-
note
Logs a message at NOTICE level.- Parameters:
d
- The message descriptor.
-
note
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
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
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, void noteT3, T4> (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, void noteT3, T4, T5> (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, void noteT3, T4, T5, T6> (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, void noteT3, T4, T5, T6, T7> (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, void noteT3, T4, T5, T6, T7, T8> (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, void noteT3, T4, T5, T6, T7, T8, T9> (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
Logs a message at NOTICE level.- Parameters:
d
- The message descriptor.args
- The message arguments.
-
note
Logs a message at NOTICE level.- Parameters:
m
- The pre-formatted message.
-
isInfoEnabled
public boolean isInfoEnabled()Returnstrue
if this logger will log messages at INFO level.- Returns:
true
if this logger will log messages at INFO level, otherwisefalse
.
-
isErrorEnabled
public boolean isErrorEnabled()Returnstrue
if this logger will log error messages.- Returns:
true
if this logger will log error messages, otherwisefalse
.- See Also:
-
isNoteEnabled
public boolean isNoteEnabled()Returnstrue
if this logger will log messages at NOTICE level.- Returns:
true
if this logger will log messages at NOTICE level, otherwisefalse
.
-
isDebugEnabled
public boolean isDebugEnabled()Returnstrue
if this logger will log messages at DEBUG level.- Returns:
true
if this logger will log messages at DEBUG level, otherwisefalse
.- See Also:
-
isWarnEnabled
public boolean isWarnEnabled()Returnstrue
if this logger will log warning messages.- Returns:
true
if this logger will log warning messages, otherwisefalse
.- See Also:
-
debug
Logs a message at DEBUG level.- Parameters:
msg
- The message.
-
debugException
Logs a message at DEBUG level with provided exception.- Parameters:
t
- The exception.
-
debug
Logs a message at DEBUG level.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.
-
debug
Logs a message at DEBUG level.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.a2
- The second message argument.
-
debug
Logs a message at DEBUG level.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.a2
- The second message argument.a3
- The third message argument.
-
debug
Logs a message at DEBUG level.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesargs
- The message arguments.
-
warn
Logs a warning message.- Parameters:
d
- The message descriptor.- See Also:
-
warn
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
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
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, void warnT3, T4> (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, void warnT3, T4, T5> (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, void warnT3, T4, T5, T6> (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, void warnT3, T4, T5, T6, T7> (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, void warnT3, T4, T5, T6, T7, T8> (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, void warnT3, T4, T5, T6, T7, T8, T9> (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
Logs a warning message.- Parameters:
d
- The message descriptor.args
- The message arguments.- See Also:
-
warn
Logs a warning message.- Parameters:
m
- The pre-formatted message.- See Also:
-