java.lang.Object
de.sormuras.bach.Log
public class Log
extends java.lang.Object
Simplistic logging support.
-
Constructor Summary
Constructors Constructor Description Log(java.io.PrintWriter out, java.io.PrintWriter err, boolean verbose) -
Method Summary
Modifier and Type Method Description voiddebug(java.lang.String format, java.lang.Object... args)Print "debug" message to the standard output stream.voidinfo(java.lang.String format, java.lang.Object... args)Print "information" message to the standard output stream.static LogofSystem()Create new Log instance using system default text output streams.static LogofSystem(boolean verbose)Create new Log instance using system default text output streams.voidwarn(java.lang.String format, java.lang.Object... args)Print "warn" message to the error output stream.
-
Constructor Details
-
Log
public Log(java.io.PrintWriter out, java.io.PrintWriter err, boolean verbose)
-
-
Method Details
-
ofSystem
Create new Log instance using system default text output streams. -
ofSystem
Create new Log instance using system default text output streams. -
debug
public void debug(java.lang.String format, java.lang.Object... args)Print "debug" message to the standard output stream. -
info
public void info(java.lang.String format, java.lang.Object... args)Print "information" message to the standard output stream. -
warn
public void warn(java.lang.String format, java.lang.Object... args)Print "warn" message to the error output stream.
-