public class SystemStreamLog extends java.lang.Object implements Log
org.apache.maven.plugin.logging.SystemStreamLog
.Modifier and Type | Field and Description |
---|---|
private int |
currentLevel |
private static java.lang.String |
EOL |
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
Constructor and Description |
---|
SystemStreamLog() |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.CharSequence content)
Send a message to the user in the debug error level.
|
void |
debug(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the debug error level.
|
void |
debug(java.lang.Throwable error)
Send an exception to the user in the debug error level.
|
void |
error(java.lang.CharSequence content)
Send a message to the user in the error error level.
|
void |
error(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the error error level.
|
void |
error(java.lang.Throwable error)
Send an exception to the user in the error error level.
|
void |
info(java.lang.CharSequence content)
Send a message to the user in the info error level.
|
void |
info(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the info error level.
|
void |
info(java.lang.Throwable error)
Send an exception to the user in the info error level.
|
boolean |
isDebugEnabled()
isDebugEnabled.
|
boolean |
isErrorEnabled()
isErrorEnabled.
|
boolean |
isInfoEnabled()
isInfoEnabled.
|
boolean |
isWarnEnabled()
isWarnEnabled.
|
private void |
print(java.lang.String prefix,
java.lang.CharSequence content) |
private void |
print(java.lang.String prefix,
java.lang.CharSequence content,
java.lang.Throwable error) |
private void |
print(java.lang.String prefix,
java.lang.Throwable error) |
void |
setLogLevel(int level)
Set the current log level.
|
void |
warn(java.lang.CharSequence content)
Send a message to the user in the warn error level.
|
void |
warn(java.lang.CharSequence content,
java.lang.Throwable error)
Send a message (and accompanying exception) to the user in the warn error level.
|
void |
warn(java.lang.Throwable error)
Send an exception to the user in the warn error level.
|
public void setLogLevel(int level)
setLogLevel
in interface Log
level
- the log level to set.public void debug(java.lang.CharSequence content)
public void debug(java.lang.CharSequence content, java.lang.Throwable error)
public void debug(java.lang.Throwable error)
public void info(java.lang.CharSequence content)
public void info(java.lang.CharSequence content, java.lang.Throwable error)
public void info(java.lang.Throwable error)
public void warn(java.lang.CharSequence content)
public void warn(java.lang.CharSequence content, java.lang.Throwable error)
public void warn(java.lang.Throwable error)
public void error(java.lang.CharSequence content)
public void error(java.lang.CharSequence content, java.lang.Throwable error)
public void error(java.lang.Throwable error)
public boolean isDebugEnabled()
isDebugEnabled.
isDebugEnabled
in interface Log
public boolean isInfoEnabled()
isInfoEnabled.
isInfoEnabled
in interface Log
public boolean isWarnEnabled()
isWarnEnabled.
isWarnEnabled
in interface Log
public boolean isErrorEnabled()
isErrorEnabled.
isErrorEnabled
in interface Log
private void print(java.lang.String prefix, java.lang.CharSequence content)
private void print(java.lang.String prefix, java.lang.Throwable error)
private void print(java.lang.String prefix, java.lang.CharSequence content, java.lang.Throwable error)