Package com.piketec.jenkins.plugins.tpt
Class TptLogger
- java.lang.Object
-
- com.piketec.jenkins.plugins.tpt.TptLogger
-
public class TptLogger extends Object
Just a wrapper to add prefixes like "[ERROR" + " date" + "] " to the messages.- Author:
- jkuhnert, PikeTec GmbH
-
-
Constructor Summary
Constructors Constructor Description TptLogger(PrintStream logger)
Wraps the givenPrintStream
into the TptLogger.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(String msg)
Report an debug message.void
error(String msg)
Report an error messagePrintStream
getLogger()
get access to the underlying message streamvoid
info(String msg)
Report an info message.void
interrupt(String msg)
Report an interrupt messagevoid
warn(String msg)
Report an warning message
-
-
-
Constructor Detail
-
TptLogger
public TptLogger(PrintStream logger)
Wraps the givenPrintStream
into the TptLogger.- Parameters:
logger
- The stream to print messages to
-
-
Method Detail
-
debug
public void debug(String msg)
Report an debug message.- Parameters:
msg
- Message to show.
-
info
public void info(String msg)
Report an info message.- Parameters:
msg
- Message to show.
-
warn
public void warn(String msg)
Report an warning message- Parameters:
msg
- Message to show.
-
error
public void error(String msg)
Report an error message- Parameters:
msg
- Message to show.
-
interrupt
public void interrupt(String msg)
Report an interrupt message- Parameters:
msg
- Message to show.
-
getLogger
public PrintStream getLogger()
get access to the underlying message stream- Returns:
- Underlying stream from the logger.
-
-