Logger implementation backed by a {@plaintext Log logger}
of commons lLogging.
| Access | Constructor and Description |
|---|---|
| public | CommonsLogger(final Log
The logger of commons-logging. log, final String The name of the logger. name)Construct a CommonsLogger. |
| Modifier and Type | Method and Description |
|---|---|
| public void | debug(final String
the message message)Implements org. |
| public void | debug(final String
the message message, final Throwable the throwable throwable)Implements org. |
| public void | error(final String
the message message)Implements org. |
| public void | error(final String
the message message, final Throwable the throwable throwable)Implements org. |
| public void | fatalError(final String
the message message)Implements org. |
| public void | fatalError(final String
the message message, final Throwable the throwable throwable)Implements org. |
| public Logger | getChildLogger(final String
the subname of this logger name)Implements org. |
| public void | info(final String
the message message)Implements org. |
| public void | info(final String
the message message, final Throwable the throwable throwable)Implements org. |
| public boolean | isDebugEnabled()
Implements org. |
| public boolean | isErrorEnabled()
Implements org. |
| public boolean | isFatalErrorEnabled()
Implements org. |
| public boolean | isInfoEnabled()
Implements org. |
| public boolean | isWarnEnabled()
Implements org. |
| public void | warn(final String
the message message)Implements org. |
| public void | warn(final String
the message message, final Throwable the throwable throwable)Implements org. |
| CommonsLogger | back to summary |
|---|---|
| public CommonsLogger(final Log log, final String name) Construct a CommonsLogger. The constructor needs explicitly the name of the commons-logger, since the commons-logging API misses the functionality to retrieve it from the logger instance. | |
| debug | back to summary |
|---|---|
| public void debug(final String message) Implements org. Doc from org. Log a debug message.
| |
| debug | back to summary |
|---|---|
| public void debug(final String message, final Throwable throwable) Implements org. Doc from org. Log a debug message. | |
| error | back to summary |
|---|---|
| public void error(final String message) Implements org. Doc from org. Log a error message.
| |
| error | back to summary |
|---|---|
| public void error(final String message, final Throwable throwable) Implements org. Doc from org. Log a error message. | |
| fatalError | back to summary |
|---|---|
| public void fatalError(final String message) Implements org. Doc from org. Log a fatalError message.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(final String message, final Throwable throwable) Implements org. Doc from org. Log a fatalError message. | |
| getChildLogger | back to summary |
|---|---|
| public Logger getChildLogger(final String name) Implements org. Doc from org. Create a new child logger.
The name of the child logger is [current-loggers-name].[passed-in-name]
Throws
| |
| info | back to summary |
|---|---|
| public void info(final String message) Implements org. Doc from org. Log a info message.
| |
| info | back to summary |
|---|---|
| public void info(final String message, final Throwable throwable) Implements org. Doc from org. Log a info message. | |
| isDebugEnabled | back to summary |
|---|---|
| public boolean isDebugEnabled() Implements org. Doc from org. Determine if messages of priority "debug" will be logged.
| |
| isErrorEnabled | back to summary |
|---|---|
| public boolean isErrorEnabled() Implements org. Doc from org. Determine if messages of priority "error" will be logged.
| |
| isFatalErrorEnabled | back to summary |
|---|---|
| public boolean isFatalErrorEnabled() Implements org. Doc from org. Determine if messages of priority "fatalError" will be logged.
| |
| isInfoEnabled | back to summary |
|---|---|
| public boolean isInfoEnabled() Implements org. Doc from org. Determine if messages of priority "info" will be logged.
| |
| isWarnEnabled | back to summary |
|---|---|
| public boolean isWarnEnabled() Implements org. Doc from org. Determine if messages of priority "warn" will be logged.
| |
| warn | back to summary |
|---|---|
| public void warn(final String message) Implements org. Doc from org. Log a warn message.
| |
| warn | back to summary |
|---|---|
| public void warn(final String message, final Throwable throwable) Implements org. Doc from org. Log a warn message. | |