Package org.codehaus.mojo.exec
Class StreamLog
java.lang.Object
org.codehaus.mojo.exec.StreamLog
- All Implemented Interfaces:
org.apache.maven.plugin.logging.Log
a Simple Maven Log that outputs to a Stream
-
Field Summary
Fields -
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
setLevel
(int level) void
warn
(CharSequence content) void
warn
(CharSequence content, Throwable error) void
-
Field Details
-
DEBUG
static final int DEBUG- See Also:
-
INFO
static final int INFO- See Also:
-
WARN
static final int WARN- See Also:
-
ERROR
static final int ERROR- See Also:
-
level
private int level -
s
-
-
Constructor Details
-
StreamLog
StreamLog(PrintStream s)
-
-
Method Details
-
setLevel
public void setLevel(int level) -
debug
- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
-
debug
- Specified by:
debug
in interfaceorg.apache.maven.plugin.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
-
error
- Specified by:
error
in interfaceorg.apache.maven.plugin.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
-
info
- Specified by:
info
in interfaceorg.apache.maven.plugin.logging.Log
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabled
in interfaceorg.apache.maven.plugin.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
-
warn
- Specified by:
warn
in interfaceorg.apache.maven.plugin.logging.Log
-