Package com.piketec.jenkins.plugins.tpt
Class TptLogger
java.lang.Object
com.piketec.jenkins.plugins.tpt.TptLogger
Just a wrapper to add prefixes like "[ERROR" + " date" + "] " to the messages.
- Author:
- jkuhnert, Synopsys Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionTptLogger(PrintStream logger) Wraps the givenPrintStreaminto the TptLogger. -
Method Summary
Modifier and TypeMethodDescriptionvoidReport an debug message.voidReport an error messageget access to the underlying message streamvoidReport an info message.voidReport an interrupt messagevoidReport an warning message
-
Constructor Details
-
TptLogger
Wraps the givenPrintStreaminto the TptLogger.- Parameters:
logger- The stream to print messages to
-
-
Method Details
-
debug
Report an debug message.- Parameters:
msg- Message to show.
-
info
Report an info message.- Parameters:
msg- Message to show.
-
warn
Report an warning message- Parameters:
msg- Message to show.
-
error
Report an error message- Parameters:
msg- Message to show.
-
interrupt
Report an interrupt message- Parameters:
msg- Message to show.
-
getLogger
get access to the underlying message stream- Returns:
- Underlying stream from the logger.
-