Class Output

java.lang.Object
java.io.OutputStream
de.paull.lib.output.Output
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class Output extends OutputStream implements AutoCloseable
Modify the Output of the terminal to include a timestamp, colors and logfiles.
  • Field Details

    • debug

      public static boolean debug
    • ANSI_TS_COLOR

      public static String ANSI_TS_COLOR
  • Constructor Details

    • Output

      public Output(boolean debug, String log, String err, String packageName)
      Initializes the Output and Error class
      Parameters:
      debug - True to show full error with stack trace, false for simplified message
      log - path for the log-file
      err - path for the error-file
      packageName - the beginning of the package structure, like `com.example`
    • Output

      public Output(boolean debug, String packageName)
      Initializes the Output and Error class

      For the log file path and error file path it checks the ConfigHandler and gets the following fields: - LOG_FILE - ERR_FILE

      Parameters:
      debug - True to show full error with stack trace, false for simplified message
      packageName - the beginning of the package structure, like `com.example`
  • Method Details