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 givenPrintStream
into the TptLogger. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Report an debug message.void
Report an error messageget access to the underlying message streamvoid
Report an info message.void
Report an interrupt messagevoid
Report an warning message
-
Constructor Details
-
TptLogger
Wraps the givenPrintStream
into 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.
-