|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.tasks.util.PluginLogger
public class PluginLogger
A simple logger that prefixes each message with the plug-in name.
| Constructor Summary | |
|---|---|
PluginLogger(java.io.PrintStream logger,
java.lang.String pluginName)
Creates a new instance of PluginLogger. |
|
| Method Summary | |
|---|---|
void |
log(java.lang.String message)
Logs the specified message. |
void |
log(java.lang.Throwable throwable)
Logs the specified throwable. |
void |
printStackTrace(java.lang.Throwable throwable)
Logs the stack trace of the throwable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginLogger(java.io.PrintStream logger,
java.lang.String pluginName)
PluginLogger.
logger - the actual print stream to log topluginName - the plug-in name| Method Detail |
|---|
public void log(java.lang.String message)
message - the messagepublic void log(java.lang.Throwable throwable)
throwable - the throwablepublic void printStackTrace(java.lang.Throwable throwable)
throwable - the throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||