Package org.apache.maven.doxia.tools
Class MojoLogWrapper
java.lang.Object
org.apache.maven.doxia.tools.MojoLogWrapper
- All Implemented Interfaces:
org.apache.maven.doxia.logging.Log
Wrap a Mojo logger into a Doxia logger.
- Since:
- 1.1
- See Also:
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
debug
(CharSequence content) void
debug
(CharSequence content, Throwable error) void
void
error
(CharSequence content) void
error
(CharSequence content, Throwable error) void
void
info
(CharSequence content) void
info
(CharSequence content, Throwable error) void
boolean
boolean
boolean
boolean
void
setLogLevel
(int level) private String
toString
(CharSequence content) void
warn
(CharSequence content) void
warn
(CharSequence content, Throwable error) void
-
Field Details
-
mojoLog
private final org.apache.maven.plugin.logging.Log mojoLog
-
-
Constructor Details
-
MojoLogWrapper
public MojoLogWrapper(org.apache.maven.plugin.logging.Log log) - Parameters:
log
- a Mojo log
-
-
Method Details
-
setLogLevel
public void setLogLevel(int level) - Specified by:
setLogLevel
in interfaceorg.apache.maven.doxia.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.doxia.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.doxia.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.doxia.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.doxia.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.doxia.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.doxia.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.doxia.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.doxia.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.doxia.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.doxia.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.doxia.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.doxia.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.apache.maven.doxia.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.apache.maven.doxia.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceorg.apache.maven.doxia.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.apache.maven.doxia.logging.Log
-
toString
-