Package de.paull.lib.output
Class Output
java.lang.Object
java.io.OutputStream
de.paull.lib.output.Output
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Modify the Output of the terminal to include a timestamp, colors and logfiles.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write
-
Field Details
-
debug
public static boolean debug -
ANSI_TS_COLOR
-
-
Constructor Details
-
Output
Initializes the Output and Error class- Parameters:
debug- True to show full error with stack trace, false for simplified messagelog- path for the log-fileerr- path for the error-filepackageName- the beginning of the package structure, like `com.example`
-
Output
Initializes the Output and Error classFor 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 messagepackageName- the beginning of the package structure, like `com.example`
-
-
Method Details
-
getPrintStream
-
getFileStream
-
write
public void write(int b) - Specified by:
writein classOutputStream
-