public class SystemStreamLog extends Object implements Log
org.apache.maven.plugin.logging.SystemStreamLog
.LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
Constructor and Description |
---|
SystemStreamLog() |
Modifier and Type | Method and Description |
---|---|
void |
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 |
debug(Throwable error)
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 |
error(Throwable error)
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 |
info(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.
|
void |
setLogLevel(int level)
Set the current log level.
|
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 |
warn(Throwable error)
Send an exception to the user in the warn error level.
|
public SystemStreamLog()
public void setLogLevel(int level)
setLogLevel
in interface Log
level
- the log level to set.public void debug(CharSequence content)
public void debug(CharSequence content, Throwable error)
public void debug(Throwable error)
public void info(CharSequence content)
public void info(CharSequence content, Throwable error)
public void info(Throwable error)
public void warn(CharSequence content)
public void warn(CharSequence content, Throwable error)
public void warn(Throwable error)
public void error(CharSequence content)
public void error(CharSequence content, Throwable error)
public void error(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
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.