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 TypeMethodDescriptionvoiddebug(CharSequence content) voiddebug(CharSequence content, Throwable error) voidvoiderror(CharSequence content) voiderror(CharSequence content, Throwable error) voidvoidinfo(CharSequence content) voidinfo(CharSequence content, Throwable error) voidbooleanbooleanbooleanbooleanvoidsetLogLevel(int level) private StringtoString(CharSequence content) voidwarn(CharSequence content) voidwarn(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:
setLogLevelin interfaceorg.apache.maven.doxia.logging.Log
-
debug
- Specified by:
debugin interfaceorg.apache.maven.doxia.logging.Log
-
debug
- Specified by:
debugin interfaceorg.apache.maven.doxia.logging.Log
-
debug
- Specified by:
debugin interfaceorg.apache.maven.doxia.logging.Log
-
info
- Specified by:
infoin interfaceorg.apache.maven.doxia.logging.Log
-
info
- Specified by:
infoin interfaceorg.apache.maven.doxia.logging.Log
-
info
- Specified by:
infoin interfaceorg.apache.maven.doxia.logging.Log
-
warn
- Specified by:
warnin interfaceorg.apache.maven.doxia.logging.Log
-
warn
- Specified by:
warnin interfaceorg.apache.maven.doxia.logging.Log
-
warn
- Specified by:
warnin interfaceorg.apache.maven.doxia.logging.Log
-
error
- Specified by:
errorin interfaceorg.apache.maven.doxia.logging.Log
-
error
- Specified by:
errorin interfaceorg.apache.maven.doxia.logging.Log
-
error
- Specified by:
errorin interfaceorg.apache.maven.doxia.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceorg.apache.maven.doxia.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceorg.apache.maven.doxia.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceorg.apache.maven.doxia.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceorg.apache.maven.doxia.logging.Log
-
toString
-