Package org.forgerock.i18n.slf4j
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
LocalizedMarker
is automatically constructed with the correspondingLocalizedMessage
to 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(LocalizableMessage m)
Logs a debug message.void
debug(LocalizableMessageDescriptor.Arg0 d)
Logs a debug message.<T1> void
debug(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)
Logs a debug message.<T1,T2>
voiddebug(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)
Logs a debug message.<T1,T2,T3>
voiddebug(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)
Logs a debug message.<T1,T2,T3,T4>
voiddebug(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)
Logs a debug message.<T1,T2,T3,T4,T5>
voiddebug(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
Logs a debug message.<T1,T2,T3,T4,T5,T6>
voiddebug(LocalizableMessageDescriptor.Arg6<T1,T2,T3,T4,T5,T6> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)
Logs a debug message.<T1,T2,T3,T4,T5,T6,T7>
voiddebug(LocalizableMessageDescriptor.Arg7<T1,T2,T3,T4,T5,T6,T7> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7)
Logs a debug message.<T1,T2,T3,T4,T5,T6,T7,T8>
voiddebug(LocalizableMessageDescriptor.Arg8<T1,T2,T3,T4,T5,T6,T7,T8> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8)
Logs a debug message.<T1,T2,T3,T4,T5,T6,T7,T8,T9>
voiddebug(LocalizableMessageDescriptor.Arg9<T1,T2,T3,T4,T5,T6,T7,T8,T9> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8, T9 a9)
Logs a debug message.void
debug(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs a debug message.void
error(LocalizableMessage m)
Logs an error message.void
error(LocalizableMessageDescriptor.Arg0 d)
Logs an error message.<T1> void
error(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.void
error(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs an error message.Locale
getLocale()
Returns the locale to which this logger will localize all log messages.static LocalizedLogger
getLocalizedLogger(Class<?> clazz)
Returns a localized logger which will forward log messages to an SLF4JLogger
obtained by callingLoggerFactory.getLogger(Class)
.static LocalizedLogger
getLocalizedLogger(String name)
Returns a localized logger which will forward log messages to an SLF4JLogger
obtained by callingLoggerFactory.getLogger(String)
.static LocalizedLogger
getLocalizedLogger(Logger logger)
Returns a localized logger which will forward log messages to the provided SLF4JLogger
.Logger
getLogger()
Returns the underlying SLF4JLogger
wrapped by this logger.static LocalizedLogger
getLoggerForThisClass()
Returns a localized logger with a name corresponding to calling class name.String
getName()
Returns the name of this logger.void
info(LocalizableMessage m)
Logs an info message.void
info(LocalizableMessageDescriptor.Arg0 d)
Logs an info message.<T1> void
info(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)
Logs an info message.<T1,T2>
voidinfo(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)
Logs an info message.<T1,T2,T3>
voidinfo(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)
Logs an info message.<T1,T2,T3,T4>
voidinfo(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)
Logs an info message.<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 an info message.<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 an info message.<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 an info message.<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 an info message.<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 an info message.void
info(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs an info message.boolean
isDebugEnabled()
Returnstrue
if this logger will log debug messages.boolean
isErrorEnabled()
Returnstrue
if this logger will log error messages.boolean
isInfoEnabled()
Returnstrue
if this logger will log info messages.boolean
isTraceEnabled()
Returnstrue
if this logger will log trace messages.boolean
isWarnEnabled()
Returnstrue
if this logger will log warning messages.void
trace(String msg)
Logs a trace message.void
trace(String format, Object a1)
Logs a trace message.void
trace(String format, Object... args)
Logs a trace message.void
trace(String format, Object a1, Object a2)
Logs a trace message.void
trace(String format, Object a1, Object a2, Object a3)
Logs a trace message.void
traceException(Throwable t)
Logs a trace message with provided exception.void
traceException(Throwable t, String msg)
Logs a trace message with an accompanying exception.void
traceException(Throwable t, String format, Object a1)
Logs a trace message with an accompanying exception.void
traceException(Throwable t, String format, Object... args)
Logs a trace message with an accompanying exception.void
traceException(Throwable t, String format, Object a1, Object a2)
Logs a trace message with an accompanying exception.void
traceException(Throwable t, String format, Object a1, Object a2, Object a3)
Logs a trace message with an accompanying exception.void
warn(LocalizableMessage m)
Logs a warning message.void
warn(LocalizableMessageDescriptor.Arg0 d)
Logs a warning message.<T1> void
warn(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.void
warn(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs a warning message.
-
-
-
Method Detail
-
getLocalizedLogger
public static LocalizedLogger getLocalizedLogger(Class<?> clazz)
Returns a localized logger which will forward log messages to an SLF4JLogger
obtained by callingLoggerFactory.getLogger(Class)
. The messages will be localized using the default locale.- Parameters:
clazz
- The name of the wrapped SLF4JLogger
.- Returns:
- The localized logger.
- See Also:
LoggerFactory.getLogger(Class)
-
getLocalizedLogger
public static LocalizedLogger getLocalizedLogger(Logger logger)
Returns a localized logger which will forward log messages to the provided SLF4JLogger
. The messages will be localized using the default locale.- Parameters:
logger
- The wrapped SLF4JLogger
.- Returns:
- The localized logger.
- See Also:
LoggerFactory.getLogger(String)
-
getLocalizedLogger
public static LocalizedLogger getLocalizedLogger(String name)
Returns a localized logger which will forward log messages to an SLF4JLogger
obtained by callingLoggerFactory.getLogger(String)
. The messages will be localized using the default locale.- Parameters:
name
- The name of the wrapped SLF4JLogger
.- Returns:
- The localized logger.
- See Also:
LoggerFactory.getLogger(String)
-
getLoggerForThisClass
public static LocalizedLogger getLoggerForThisClass()
Returns a localized logger with a name corresponding to calling class name. The logger will forward log messages to an SLF4JLogger
obtained by callingLoggerFactory.getLogger(String)
. The messages will be localized using the default locale.- Returns:
- The localized logger using calling class name as its name
- See Also:
LoggerFactory.getLogger(String)
-
debug
public void debug(LocalizableMessageDescriptor.Arg0 d)
Logs a debug message.- Parameters:
d
- The message descriptor.- See Also:
Logger.debug(String)
-
debug
public <T1> void debug(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2> void debug(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3> void debug(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3,T4> void debug(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3,T4,T5> void debug(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3,T4,T5,T6> void debug(LocalizableMessageDescriptor.Arg6<T1,T2,T3,T4,T5,T6> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3,T4,T5,T6,T7> void debug(LocalizableMessageDescriptor.Arg7<T1,T2,T3,T4,T5,T6,T7> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.T7
- The type of the seventh message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.a7
- The seventh message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3,T4,T5,T6,T7,T8> void debug(LocalizableMessageDescriptor.Arg8<T1,T2,T3,T4,T5,T6,T7,T8> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.T7
- The type of the seventh message argument.T8
- The type of the eighth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.a7
- The seventh message argument.a8
- The eighth message argument.- See Also:
Logger.debug(String)
-
debug
public <T1,T2,T3,T4,T5,T6,T7,T8,T9> void debug(LocalizableMessageDescriptor.Arg9<T1,T2,T3,T4,T5,T6,T7,T8,T9> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8, T9 a9)
Logs a debug message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.T7
- The type of the seventh message argument.T8
- The type of the eighth message argument.T9
- The type of the ninth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.a7
- The seventh message argument.a8
- The eighth message argument.a9
- The ninth message argument.- See Also:
Logger.debug(String)
-
debug
public void debug(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs a debug message.- Parameters:
d
- The message descriptor.args
- The message arguments.- See Also:
Logger.debug(String)
-
debug
public void debug(LocalizableMessage m)
Logs a debug message.- Parameters:
m
- The pre-formatted message.- See Also:
Logger.debug(String)
-
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 Logger getLogger()
Returns the underlying SLF4JLogger
wrapped by this logger.- Returns:
- The underlying SLF4J
Logger
wrapped by this logger.
-
getName
public String getName()
Returns the name of this logger.- Returns:
- The name of this logger.
- See Also:
Logger.getName()
-
info
public void info(LocalizableMessageDescriptor.Arg0 d)
Logs an info message.- Parameters:
d
- The message descriptor.- See Also:
Logger.info(String)
-
info
public <T1> void info(LocalizableMessageDescriptor.Arg1<T1> d, T1 a1)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2> void info(LocalizableMessageDescriptor.Arg2<T1,T2> d, T1 a1, T2 a2)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3> void info(LocalizableMessageDescriptor.Arg3<T1,T2,T3> d, T1 a1, T2 a2, T3 a3)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3,T4> void info(LocalizableMessageDescriptor.Arg4<T1,T2,T3,T4> d, T1 a1, T2 a2, T3 a3, T4 a4)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3,T4,T5> void info(LocalizableMessageDescriptor.Arg5<T1,T2,T3,T4,T5> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3,T4,T5,T6> void info(LocalizableMessageDescriptor.Arg6<T1,T2,T3,T4,T5,T6> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3,T4,T5,T6,T7> void info(LocalizableMessageDescriptor.Arg7<T1,T2,T3,T4,T5,T6,T7> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.T7
- The type of the seventh message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.a7
- The seventh message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3,T4,T5,T6,T7,T8> void info(LocalizableMessageDescriptor.Arg8<T1,T2,T3,T4,T5,T6,T7,T8> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.T7
- The type of the seventh message argument.T8
- The type of the eighth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.a7
- The seventh message argument.a8
- The eighth message argument.- See Also:
Logger.info(String)
-
info
public <T1,T2,T3,T4,T5,T6,T7,T8,T9> void info(LocalizableMessageDescriptor.Arg9<T1,T2,T3,T4,T5,T6,T7,T8,T9> d, T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6, T7 a7, T8 a8, T9 a9)
Logs an info message.- Type Parameters:
T1
- The type of the first message argument.T2
- The type of the second message argument.T3
- The type of the third message argument.T4
- The type of the fourth message argument.T5
- The type of the fifth message argument.T6
- The type of the sixth message argument.T7
- The type of the seventh message argument.T8
- The type of the eighth message argument.T9
- The type of the ninth message argument.- Parameters:
d
- The message descriptor.a1
- The first message argument.a2
- The second message argument.a3
- The third message argument.a4
- The fourth message argument.a5
- The fifth message argument.a6
- The sixth message argument.a7
- The seventh message argument.a8
- The eighth message argument.a9
- The ninth message argument.- See Also:
Logger.info(String)
-
info
public void info(LocalizableMessageDescriptor.ArgN d, Object... args)
Logs an info message.- Parameters:
d
- The message descriptor.args
- The message arguments.- See Also:
Logger.info(String)
-
info
public void info(LocalizableMessage m)
Logs an info message.- Parameters:
m
- The pre-formatted message.- See Also:
Logger.info(String)
-
isDebugEnabled
public boolean isDebugEnabled()
Returnstrue
if this logger will log debug messages.- Returns:
true
if this logger will log debug messages, otherwisefalse
.- See Also:
Logger.isDebugEnabled()
-
isErrorEnabled
public boolean isErrorEnabled()
Returnstrue
if this logger will log error messages.- Returns:
true
if this logger will log error messages, otherwisefalse
.- See Also:
Logger.isErrorEnabled()
-
isInfoEnabled
public boolean isInfoEnabled()
Returnstrue
if this logger will log info messages.- Returns:
true
if this logger will log info messages, otherwisefalse
.- See Also:
Logger.isInfoEnabled()
-
isTraceEnabled
public boolean isTraceEnabled()
Returnstrue
if this logger will log trace messages.- Returns:
true
if this logger will log trace messages, otherwisefalse
.- See Also:
Logger.isTraceEnabled()
-
isWarnEnabled
public boolean isWarnEnabled()
Returnstrue
if this logger will log warning messages.- Returns:
true
if this logger will log warning messages, otherwisefalse
.- See Also:
Logger.isWarnEnabled()
-
trace
public void trace(String msg)
Logs a trace message.- Parameters:
msg
- The message.- See Also:
Logger.trace(String)
-
traceException
public void traceException(Throwable t)
Logs a trace message with provided exception.- Parameters:
t
- The exception.- See Also:
Logger.trace(String)
-
traceException
public void traceException(Throwable t, String msg)
Logs a trace message with an accompanying exception.- Parameters:
t
- The throwable to log.msg
- The message.- See Also:
Logger.trace(String, Throwable)
-
trace
public void trace(String format, Object a1)
Logs a trace message.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.- See Also:
Logger.trace(String)
-
traceException
public void traceException(Throwable t, String format, Object a1)
Logs a trace message with an accompanying exception.- Parameters:
t
- The throwable to log.format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.- See Also:
Logger.trace(String, Throwable)
-
trace
public void trace(String format, Object a1, Object a2)
Logs a trace message.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.a2
- The second message argument.- See Also:
Logger.trace(String)
-
traceException
public void traceException(Throwable t, String format, Object a1, Object a2)
Logs a trace message with an accompanying exception.- Parameters:
t
- The throwable to log.format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.a2
- The second message argument.- See Also:
Logger.trace(String, Throwable)
-
trace
public void trace(String format, Object a1, Object a2, Object a3)
Logs a trace message.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.a2
- The second message argument.a3
- The third message argument.- See Also:
Logger.trace(String)
-
traceException
public void traceException(Throwable t, String format, Object a1, Object a2, Object a3)
Logs a trace message with an accompanying exception.- Parameters:
t
- The throwable to log.format
- The message format, compatible withjava.util.Formatter
rulesa1
- The first message argument.a2
- The second message argument.a3
- The third message argument.- See Also:
Logger.trace(String, Throwable)
-
trace
public void trace(String format, Object... args)
Logs a trace message.- Parameters:
format
- The message format, compatible withjava.util.Formatter
rulesargs
- The message arguments.- See Also:
Logger.trace(Marker, String)
-
traceException
public void traceException(Throwable t, String format, Object... args)
Logs a trace message with an accompanying exception.- Parameters:
t
- The throwable to log.format
- The message format, compatible withjava.util.Formatter
rulesargs
- The message arguments.- See Also:
Logger.trace(String, Throwable)
-
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)
-
-