@InternalApi(value="For internal usage only") public class Logger extends Object
Log
to conditionally format messages if a specified log level is enabled.
For internal use only - public for technical reasons.
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
Logger(Class<?> logClass)
Constructor for Logger.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String message,
Object... args)
debug
|
void |
debug(String message,
Throwable t,
Object... args)
debug
|
void |
error(String message,
Object... args)
error
|
void |
error(String message,
Throwable t,
Object... args)
error
|
void |
fatal(String message,
Object... args)
fatal
|
void |
fatal(String message,
Throwable t,
Object... args)
fatal
|
org.apache.commons.logging.Log |
getLog()
Get the underlying
Log |
void |
info(String message,
Object... args)
info
|
void |
info(String message,
Throwable t,
Object... args)
info
|
void |
trace(String message,
Object... args)
trace
|
void |
warn(String message,
Object... args)
warn
|
void |
warn(String message,
Throwable t,
Object... args)
warn
|
public void trace(String message, Object... args)
message
- Format string.args
- Arguments for format string.Log.trace(java.lang.Object)
public void debug(String message, Object... args)
message
- Format string.args
- Arguments for format string.Log.debug(java.lang.Object)
public void debug(String message, Throwable t, Object... args)
message
- Format string.t
- a Throwable
object.args
- Arguments for format string.Log.debug(java.lang.Object)
public void info(String message, Object... args)
message
- Format string.args
- Arguments for format string.Log.info(java.lang.Object)
public void info(String message, Throwable t, Object... args)
message
- Format string.t
- a Throwable
object.args
- Arguments for format string.Log.info(java.lang.Object)
public void warn(String message, Object... args)
message
- Format string.args
- Arguments for format string.Log.warn(java.lang.Object)
public void warn(String message, Throwable t, Object... args)
message
- Format string.t
- a Throwable
object.args
- Arguments for format string.Log.warn(java.lang.Object)
public void error(String message, Object... args)
message
- Format string.args
- Arguments for format string.Log.error(java.lang.Object)
public void error(String message, Throwable t, Object... args)
message
- Format string.t
- a Throwable
object.args
- Arguments for format string.Log.error(java.lang.Object)
public void fatal(String message, Throwable t, Object... args)
message
- Format string.t
- a Throwable
object.args
- Arguments for format string.Log.fatal(java.lang.Object)
public org.apache.commons.logging.Log getLog()
Log