public class Logger extends Object implements Serializable
Only exposes the relevant factory and logging methods.
For JBoss the logging should be done as follows:
isTraceEnabled()
,
trace(Object)
,
trace(Object,Throwable)
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Logger.Level
Levels used by this logging API.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
LOG4J_PLUGIN_CLASS_NAME
The default LoggerPlugin implementation is log4j
|
protected LoggerPluginInstance |
loggerDelegate
The logger plugin delegate
|
protected static String |
PLUGIN_CLASS_PROP
The system property to look for an externalized LoggerPlugin implementation class
|
protected static Class<?> |
pluginClass
The LoggerPlugin implementation class to use
|
protected static String |
pluginClassName
The class name of the LoggerPlugin implementation class to use
|
Modifier and Type | Method and Description |
---|---|
void |
debug(Object message)
Issue a log message with a level of DEBUG.
|
void |
debug(Object message,
Object[] params)
Issue a log message with parameters with a level of DEBUG.
|
void |
debug(Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of DEBUG.
|
void |
debug(Object message,
Throwable t)
Issue a log message and throwable with a level of DEBUG.
|
void |
debug(String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of DEBUG.
|
void |
debug(String loggerFqcn,
Object message,
Throwable t)
Issue a log message and throwable with a level of DEBUG and a specific logger class name.
|
void |
debugf(String format,
Object... params)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(String format,
Object param1)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(String format,
Object param1,
Object param2)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(Throwable t,
String format,
Object... params)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(Throwable t,
String format,
Object param1)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(Throwable t,
String format,
Object param1,
Object param2)
Issue a formatted log message with a level of DEBUG.
|
void |
debugf(Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of DEBUG.
|
void |
error(Object message)
Issue a log message with a level of ERROR.
|
void |
error(Object message,
Object[] params)
Issue a log message with parameters with a level of ERROR.
|
void |
error(Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of ERROR.
|
void |
error(Object message,
Throwable t)
Issue a log message and throwable with a level of ERROR.
|
void |
error(String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of ERROR.
|
void |
error(String loggerFqcn,
Object message,
Throwable t)
Issue a log message and throwable with a level of ERROR and a specific logger class name.
|
void |
errorf(String format,
Object... params)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(String format,
Object param1)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(String format,
Object param1,
Object param2)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(Throwable t,
String format,
Object... params)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(Throwable t,
String format,
Object param1)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(Throwable t,
String format,
Object param1,
Object param2)
Issue a formatted log message with a level of ERROR.
|
void |
errorf(Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of ERROR.
|
void |
fatal(Object message)
Issue a log message with a level of FATAL.
|
void |
fatal(Object message,
Object[] params)
Issue a log message with parameters with a level of FATAL.
|
void |
fatal(Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of FATAL.
|
void |
fatal(Object message,
Throwable t)
Issue a log message and throwable with a level of FATAL.
|
void |
fatal(String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of FATAL.
|
void |
fatal(String loggerFqcn,
Object message,
Throwable t)
Issue a log message and throwable with a level of FATAL and a specific logger class name.
|
void |
fatalf(String format,
Object... params)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(String format,
Object param1)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(String format,
Object param1,
Object param2)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(Throwable t,
String format,
Object... params)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(Throwable t,
String format,
Object param1)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(Throwable t,
String format,
Object param1,
Object param2)
Issue a formatted log message with a level of FATAL.
|
void |
fatalf(Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of FATAL.
|
static Logger |
getI18nLogger(Class<?> clazz,
String resourceBundleName)
Get a logger instance with the given name using the given resource bundle (if supported by the underlying
framework).
|
static Logger |
getI18nLogger(String name,
String resourceBundleName)
Get a logger instance with the given name using the given resource bundle (if supported by the underlying
framework).
|
static Logger |
getLogger(Class<?> clazz)
Get a Logger instance given the name of a class.
|
static Logger |
getLogger(Class<?> clazz,
String suffix)
Get a Logger instance given the name of a class with the given suffix.
|
static Logger |
getLogger(String name)
Get a Logger instance given the logger name.
|
static Logger |
getLogger(String name,
String suffix)
Get a Logger instance given the logger name with the given suffix.
|
LoggerPlugin |
getLoggerPlugin()
Get the logger plugin.
|
LoggerPluginInstance |
getLoggerPluginInstance()
Get the logger plugin delegate
|
String |
getName()
Return the name of this logger.
|
static String |
getPluginClassName()
The LoggerPlugin implementation class name in use
|
void |
info(Object message)
Issue a log message with a level of INFO.
|
void |
info(Object message,
Object[] params)
Issue a log message with parameters with a level of INFO.
|
void |
info(Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of INFO.
|
void |
info(Object message,
Throwable t)
Issue a log message and throwable with a level of INFO.
|
void |
info(String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of INFO.
|
void |
info(String loggerFqcn,
Object message,
Throwable t)
Issue a log message and throwable with a level of INFO and a specific logger class name.
|
void |
infof(String format,
Object... params)
Issue a formatted log message with a level of INFO.
|
void |
infof(String format,
Object param1)
Issue a formatted log message with a level of INFO.
|
void |
infof(String format,
Object param1,
Object param2)
Issue a formatted log message with a level of INFO.
|
void |
infof(String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of INFO.
|
void |
infof(Throwable t,
String format,
Object... params)
Issue a formatted log message with a level of INFO.
|
void |
infof(Throwable t,
String format,
Object param1)
Issue a formatted log message with a level of INFO.
|
void |
infof(Throwable t,
String format,
Object param1,
Object param2)
Issue a formatted log message with a level of INFO.
|
void |
infof(Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of INFO.
|
protected static void |
init()
Initialize the LoggerPlugin class to use as the delegate to the
logging system.
|
boolean |
isDebugEnabled()
Check to see if the DEBUG level is enabled for this logger.
|
boolean |
isInfoEnabled()
Check to see if the INFO level is enabled for this logger.
|
boolean |
isTraceEnabled()
Check to see if the TRACE level is enabled for this logger.
|
void |
log(Logger.Level level,
Object message)
Log a message at the given level.
|
void |
log(Logger.Level level,
Object message,
Object[] params)
Log a message at the given level.
|
void |
log(Logger.Level level,
Object message,
Object[] params,
Throwable t)
Log a message at the given level.
|
void |
log(String loggerFqcn,
Logger.Level level,
Object message,
Object[] params,
Throwable t)
Log a message at the given level.
|
void |
logf(Logger.Level level,
String format,
Object... params)
Log a message at the given level.
|
void |
logf(Logger.Level level,
String format,
Object param1)
Log a message at the given level.
|
void |
logf(Logger.Level level,
String format,
Object param1,
Object param2)
Log a message at the given level.
|
void |
logf(Logger.Level level,
String format,
Object param1,
Object param2,
Object param3)
Log a message at the given level.
|
void |
logf(Logger.Level level,
Throwable t,
String format,
Object... params)
Log a message at the given level.
|
void |
logf(Logger.Level level,
Throwable t,
String format,
Object param1)
Log a message at the given level.
|
void |
logf(Logger.Level level,
Throwable t,
String format,
Object param1,
Object param2)
Log a message at the given level.
|
void |
logf(Logger.Level level,
Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Log a message at the given level.
|
void |
logf(String loggerFqcn,
Logger.Level level,
Throwable t,
String format,
Object... params)
Log a message at the given level.
|
void |
logf(String loggerFqcn,
Logger.Level level,
Throwable t,
String format,
Object param1)
Log a message at the given level.
|
void |
logf(String loggerFqcn,
Logger.Level level,
Throwable t,
String format,
Object param1,
Object param2)
Log a message at the given level.
|
void |
logf(String loggerFqcn,
Logger.Level level,
Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Log a message at the given level.
|
protected Object |
readResolve()
Read resolver; replaces deserialized instance with a canonical instance.
|
static void |
setPluginClassName(String pluginClassName)
Set the LoggerPlugin implementation class name in use
|
void |
trace(Object message)
Issue a log msg with a level of TRACE.
|
void |
trace(Object message,
Object[] params)
Issue a log message with parameters with a level of TRACE.
|
void |
trace(Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of TRACE.
|
void |
trace(Object message,
Throwable t)
Issue a log msg and throwable with a level of TRACE.
|
void |
trace(String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of TRACE.
|
void |
trace(String loggerFqcn,
Object message,
Throwable t)
Issue a log msg and throwable with a level of TRACE and a specific logger class name.
|
void |
tracef(String format,
Object... params)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(String format,
Object param1)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(String format,
Object param1,
Object param2)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(Throwable t,
String format,
Object... params)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(Throwable t,
String format,
Object param1)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(Throwable t,
String format,
Object param1,
Object param2)
Issue a formatted log message with a level of TRACE.
|
void |
tracef(Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of TRACE.
|
void |
warn(Object message)
Issue a log message with a level of WARN.
|
void |
warn(Object message,
Object[] params)
Issue a log message with parameters with a level of WARN.
|
void |
warn(Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of WARN.
|
void |
warn(Object message,
Throwable t)
Issue a log message and throwable with a level of WARN.
|
void |
warn(String loggerFqcn,
Object message,
Object[] params,
Throwable t)
Issue a log message with parameters and a throwable with a level of WARN.
|
void |
warn(String loggerFqcn,
Object message,
Throwable t)
Issue a log message and throwable with a level of WARN and a specific logger class name.
|
void |
warnf(String format,
Object... params)
Issue a formatted log message with a level of WARN.
|
void |
warnf(String format,
Object param1)
Issue a formatted log message with a level of WARN.
|
void |
warnf(String format,
Object param1,
Object param2)
Issue a formatted log message with a level of WARN.
|
void |
warnf(String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of WARN.
|
void |
warnf(Throwable t,
String format,
Object... params)
Issue a formatted log message with a level of WARN.
|
void |
warnf(Throwable t,
String format,
Object param1)
Issue a formatted log message with a level of WARN.
|
void |
warnf(Throwable t,
String format,
Object param1,
Object param2)
Issue a formatted log message with a level of WARN.
|
void |
warnf(Throwable t,
String format,
Object param1,
Object param2,
Object param3)
Issue a formatted log message with a level of WARN.
|
protected static String PLUGIN_CLASS_PROP
protected static final String LOG4J_PLUGIN_CLASS_NAME
protected static Class<?> pluginClass
protected static String pluginClassName
protected transient LoggerPluginInstance loggerDelegate
public static String getPluginClassName()
public static void setPluginClassName(String pluginClassName)
pluginClassName
- the LoggerPlugin implementation class namepublic String getName()
public LoggerPluginInstance getLoggerPluginInstance()
public boolean isTraceEnabled()
trace(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void trace(Object message)
message
- the messagepublic void trace(Object message, Throwable t)
message
- the messaget
- the throwablepublic void trace(String loggerFqcn, Object message, Throwable t)
loggerFqcn
- the logger class namemessage
- the messaget
- the throwablepublic void trace(Object message, Object[] params)
message
- the messageparams
- the message parameterspublic void trace(Object message, Object[] params, Throwable t)
message
- the messageparams
- the message parameterst
- the throwablepublic void trace(String loggerFqcn, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namemessage
- the messageparams
- the message parameterst
- the throwablepublic void tracef(String format, Object... params)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the parameterspublic void tracef(String format, Object param1)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void tracef(String format, Object param1, Object param2)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void tracef(String format, Object param1, Object param2, Object param3)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void tracef(Throwable t, String format, Object... params)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
params
- the parameterspublic void tracef(Throwable t, String format, Object param1)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the sole parameterpublic void tracef(Throwable t, String format, Object param1, Object param2)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterpublic void tracef(Throwable t, String format, Object param1, Object param2, Object param3)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic boolean isDebugEnabled()
debug(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void debug(Object message)
message
- the messagepublic void debug(Object message, Throwable t)
message
- the messaget
- the throwablepublic void debug(String loggerFqcn, Object message, Throwable t)
loggerFqcn
- the logger class namemessage
- the messaget
- the throwablepublic void debug(Object message, Object[] params)
message
- the messageparams
- the message parameterspublic void debug(Object message, Object[] params, Throwable t)
message
- the messageparams
- the message parameterst
- the throwablepublic void debug(String loggerFqcn, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namemessage
- the messageparams
- the message parameterst
- the throwablepublic void debugf(String format, Object... params)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the parameterspublic void debugf(String format, Object param1)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void debugf(String format, Object param1, Object param2)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void debugf(String format, Object param1, Object param2, Object param3)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void debugf(Throwable t, String format, Object... params)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
params
- the parameterspublic void debugf(Throwable t, String format, Object param1)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the sole parameterpublic void debugf(Throwable t, String format, Object param1, Object param2)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterpublic void debugf(Throwable t, String format, Object param1, Object param2, Object param3)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic boolean isInfoEnabled()
info(Object)
method invocation would pass
the msg to the configured appenders, false otherwise.public void info(Object message)
message
- the messagepublic void info(Object message, Throwable t)
message
- the messaget
- the throwablepublic void info(String loggerFqcn, Object message, Throwable t)
loggerFqcn
- the logger class namemessage
- the messaget
- the throwablepublic void info(Object message, Object[] params)
message
- the messageparams
- the message parameterspublic void info(Object message, Object[] params, Throwable t)
message
- the messageparams
- the message parameterst
- the throwablepublic void info(String loggerFqcn, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namemessage
- the messageparams
- the message parameterst
- the throwablepublic void infof(String format, Object... params)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the parameterspublic void infof(String format, Object param1)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void infof(String format, Object param1, Object param2)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void infof(String format, Object param1, Object param2, Object param3)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void infof(Throwable t, String format, Object... params)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
params
- the parameterspublic void infof(Throwable t, String format, Object param1)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the sole parameterpublic void infof(Throwable t, String format, Object param1, Object param2)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterpublic void infof(Throwable t, String format, Object param1, Object param2, Object param3)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void warn(Object message)
message
- the messagepublic void warn(Object message, Throwable t)
message
- the messaget
- the throwablepublic void warn(String loggerFqcn, Object message, Throwable t)
loggerFqcn
- the logger class namemessage
- the messaget
- the throwablepublic void warn(Object message, Object[] params)
message
- the messageparams
- the message parameterspublic void warn(Object message, Object[] params, Throwable t)
message
- the messageparams
- the message parameterst
- the throwablepublic void warn(String loggerFqcn, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namemessage
- the messageparams
- the message parameterst
- the throwablepublic void warnf(String format, Object... params)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the parameterspublic void warnf(String format, Object param1)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void warnf(String format, Object param1, Object param2)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void warnf(String format, Object param1, Object param2, Object param3)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void warnf(Throwable t, String format, Object... params)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
params
- the parameterspublic void warnf(Throwable t, String format, Object param1)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the sole parameterpublic void warnf(Throwable t, String format, Object param1, Object param2)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterpublic void warnf(Throwable t, String format, Object param1, Object param2, Object param3)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void error(Object message)
message
- the messagepublic void error(Object message, Throwable t)
message
- the messaget
- the throwablepublic void error(String loggerFqcn, Object message, Throwable t)
loggerFqcn
- the logger class namemessage
- the messaget
- the throwablepublic void error(Object message, Object[] params)
message
- the messageparams
- the message parameterspublic void error(Object message, Object[] params, Throwable t)
message
- the messageparams
- the message parameterst
- the throwablepublic void error(String loggerFqcn, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namemessage
- the messageparams
- the message parameterst
- the throwablepublic void errorf(String format, Object... params)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the parameterspublic void errorf(String format, Object param1)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void errorf(String format, Object param1, Object param2)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void errorf(String format, Object param1, Object param2, Object param3)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void errorf(Throwable t, String format, Object... params)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
params
- the parameterspublic void errorf(Throwable t, String format, Object param1)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the sole parameterpublic void errorf(Throwable t, String format, Object param1, Object param2)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterpublic void errorf(Throwable t, String format, Object param1, Object param2, Object param3)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void fatal(Object message)
message
- the messagepublic void fatal(Object message, Throwable t)
message
- the messaget
- the throwablepublic void fatal(String loggerFqcn, Object message, Throwable t)
loggerFqcn
- the logger class namemessage
- the messaget
- the throwablepublic void fatal(Object message, Object[] params)
message
- the messageparams
- the message parameterspublic void fatal(Object message, Object[] params, Throwable t)
message
- the messageparams
- the message parameterst
- the throwablepublic void fatal(String loggerFqcn, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namemessage
- the messageparams
- the message parameterst
- the throwablepublic void fatalf(String format, Object... params)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the parameterspublic void fatalf(String format, Object param1)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void fatalf(String format, Object param1, Object param2)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void fatalf(String format, Object param1, Object param2, Object param3)
format
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void fatalf(Throwable t, String format, Object... params)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
params
- the parameterspublic void fatalf(Throwable t, String format, Object param1)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the sole parameterpublic void fatalf(Throwable t, String format, Object param1, Object param2)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterpublic void fatalf(Throwable t, String format, Object param1, Object param2, Object param3)
t
- the throwableformat
- the format string, as per String.format(String, Object[])
param1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void log(Logger.Level level, Object message)
level
- the levelmessage
- the messagepublic void log(Logger.Level level, Object message, Object[] params)
level
- the levelmessage
- the messageparams
- the message parameterspublic void log(Logger.Level level, Object message, Object[] params, Throwable t)
level
- the levelmessage
- the messageparams
- the message parameterst
- the throwable causepublic void log(String loggerFqcn, Logger.Level level, Object message, Object[] params, Throwable t)
loggerFqcn
- the logger class namelevel
- the levelmessage
- the messageparams
- the message parameterst
- the throwable causepublic void logf(Logger.Level level, String format, Object param1)
level
- the levelformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void logf(Logger.Level level, String format, Object param1, Object param2)
level
- the levelformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void logf(Logger.Level level, String format, Object param1, Object param2, Object param3)
level
- the levelformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void logf(Logger.Level level, String format, Object... params)
level
- the levelformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the message parameterspublic void logf(Logger.Level level, Throwable t, String format, Object param1)
level
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void logf(Logger.Level level, Throwable t, String format, Object param1, Object param2)
level
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void logf(Logger.Level level, Throwable t, String format, Object param1, Object param2, Object param3)
level
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void logf(Logger.Level level, Throwable t, String format, Object... params)
level
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the message parameterspublic void logf(String loggerFqcn, Logger.Level level, Throwable t, String format, Object param1)
loggerFqcn
- the logger class namelevel
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the sole parameterpublic void logf(String loggerFqcn, Logger.Level level, Throwable t, String format, Object param1, Object param2)
loggerFqcn
- the logger class namelevel
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterpublic void logf(String loggerFqcn, Logger.Level level, Throwable t, String format, Object param1, Object param2, Object param3)
loggerFqcn
- the logger class namelevel
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparam1
- the first parameterparam2
- the second parameterparam3
- the third parameterpublic void logf(String loggerFqcn, Logger.Level level, Throwable t, String format, Object... params)
loggerFqcn
- the logger class namelevel
- the levelt
- the throwable causeformat
- the format string as per String.format(String, Object[])
or resource bundle key thereforparams
- the message parametersprotected final Object readResolve()
public static Logger getI18nLogger(String name, String resourceBundleName)
name
- the logger category nameresourceBundleName
- the resource bundle namepublic static Logger getI18nLogger(Class<?> clazz, String resourceBundleName)
clazz
- the class whose name will be used as the logger category nameresourceBundleName
- the resource bundle namepublic static Logger getLogger(String name)
name
- the logger namepublic static Logger getLogger(String name, String suffix)
This will include a logger seperator between classname and suffix
name
- the logger namesuffix
- a suffix to append to the classname.public static Logger getLogger(Class<?> clazz)
clazz
- the Class whose name will be used as the logger namepublic static Logger getLogger(Class<?> clazz, String suffix)
This will include a logger seperator between classname and suffix
clazz
- the Class whose name will be used as the logger name.suffix
- a suffix to append to the classname.public LoggerPlugin getLoggerPlugin()
protected static void init()
setPluginClassName(String)
method,
then the PLUGIN_CLASS_PROP system property and finally the
LOG4J_PLUGIN_CLASS_NAME default. If the LoggerPlugin implementation
class cannot be loaded the default NullLoggerPlugin will be used.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.