Class TptLogger


  • public class TptLogger
    extends Object
    Just a wrapper to add prefixes like "[ERROR" + " date" + "] " to the messages.
    Author:
    jkuhnert, PikeTec GmbH
    • Constructor Detail

      • TptLogger

        public TptLogger​(PrintStream logger)
        Wraps the given PrintStream 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.