Class ConsoleLog
- java.lang.Object
-
- com.anchore.jenkins.plugins.anchore.ConsoleLog
-
public class ConsoleLog extends Object
Logging mechanism for outputting messages to Jenkins build console
-
-
Constructor Summary
Constructors Constructor Description ConsoleLog(String name, PrintStream logger, boolean enableDebug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrintStream
getLogger()
boolean
isEnableDebug()
void
logDebug(String msg)
void
logDebug(String msg, Throwable t)
void
logError(String msg)
void
logError(String msg, Throwable t)
void
logInfo(String msg)
void
logWarn(String msg)
void
logWarn(String msg, Throwable t)
-
-
-
Constructor Detail
-
ConsoleLog
public ConsoleLog(String name, PrintStream logger, boolean enableDebug) throws AbortException
- Throws:
AbortException
-
-
Method Detail
-
getLogger
public PrintStream getLogger()
-
isEnableDebug
public boolean isEnableDebug()
-
logDebug
public void logDebug(String msg)
-
logInfo
public void logInfo(String msg)
-
logWarn
public void logWarn(String msg)
-
logError
public void logError(String msg)
-
-