Package org.apache.maven.doxia.logging
Class PlexusLoggerWrapper
java.lang.Object
org.apache.maven.doxia.logging.PlexusLoggerWrapper
- All Implemented Interfaces:
Log
Wrap a Plexus logger into a Doxia logger.
Based on org.apache.maven.plugin.logging.Log.
- Since:
- 1.1
-
Field Summary
FieldsFields inherited from interface org.apache.maven.doxia.logging.Log
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
-
Constructor Summary
ConstructorsConstructorDescriptionPlexusLoggerWrapper
(org.codehaus.plexus.logging.Logger logger) Constructor for PlexusLoggerWrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(CharSequence content) Send a message to the user in the debug error level.void
debug
(CharSequence content, Throwable error) Send a message (and accompanying exception) to the user in the debug error level.void
Send an exception to the user in the debug error level.void
error
(CharSequence content) Send a message to the user in the error error level.void
error
(CharSequence content, Throwable error) Send a message (and accompanying exception) to the user in the error error level.void
Send an exception to the user in the error error level.void
info
(CharSequence content) Send a message to the user in the info error level.void
info
(CharSequence content, Throwable error) Send a message (and accompanying exception) to the user in the info error level.void
Send an exception to the user in the info error level.boolean
isDebugEnabled.boolean
isErrorEnabled.boolean
isInfoEnabled.boolean
isWarnEnabled.void
setLogLevel
(int level) Set the current log level.private String
toString
(CharSequence content) void
warn
(CharSequence content) Send a message to the user in the warn error level.void
warn
(CharSequence content, Throwable error) Send a message (and accompanying exception) to the user in the warn error level.void
Send an exception to the user in the warn error level.
-
Field Details
-
logger
private final org.codehaus.plexus.logging.Logger logger
-
-
Constructor Details
-
PlexusLoggerWrapper
public PlexusLoggerWrapper(org.codehaus.plexus.logging.Logger logger) Constructor for PlexusLoggerWrapper.
- Parameters:
logger
- the Plexus logger to wrap.
-
-
Method Details
-
setLogLevel
public void setLogLevel(int level) Set the current log level.- Specified by:
setLogLevel
in interfaceLog
- Parameters:
level
- the log level to set.
-
debug
Send a message to the user in the debug error level.- Specified by:
debug
in interfaceLog
- Parameters:
content
- aCharSequence
object.
-
debug
Send a message (and accompanying exception) to the user in the debug error level.
The error's stacktrace will be output when this error level is enabled. -
debug
Send an exception to the user in the debug error level.
The stack trace for this exception will be output when this error level is enabled. -
info
Send a message to the user in the info error level. -
info
Send a message (and accompanying exception) to the user in the info error level.
The error's stacktrace will be output when this error level is enabled. -
info
Send an exception to the user in the info error level.
The stack trace for this exception will be output when this error level is enabled. -
warn
Send a message to the user in the warn error level.- Specified by:
warn
in interfaceLog
- Parameters:
content
- aCharSequence
object.
-
warn
Send a message (and accompanying exception) to the user in the warn error level.
The error's stacktrace will be output when this error level is enabled. -
warn
Send an exception to the user in the warn error level.
The stack trace for this exception will be output when this error level is enabled. -
error
Send a message to the user in the error error level. -
error
Send a message (and accompanying exception) to the user in the error error level.
The error's stacktrace will be output when this error level is enabled. -
error
Send an exception to the user in the error error level.
The stack trace for this exception will be output when this error level is enabled. -
isDebugEnabled
public boolean isDebugEnabled()isDebugEnabled.
- Specified by:
isDebugEnabled
in interfaceLog
- Returns:
- a boolean.
-
isInfoEnabled
public boolean isInfoEnabled()isInfoEnabled.
- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- a boolean.
-
isWarnEnabled
public boolean isWarnEnabled()isWarnEnabled.
- Specified by:
isWarnEnabled
in interfaceLog
- Returns:
- a boolean.
-
isErrorEnabled
public boolean isErrorEnabled()isErrorEnabled.
- Specified by:
isErrorEnabled
in interfaceLog
- Returns:
- a boolean.
-
toString
-