Class Log

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
    void debug​(java.lang.String format, java.lang.Object... args)
    Print "debug" message to the standard output stream.
    void info​(java.lang.String format, java.lang.Object... args)
    Print "information" message to the standard output stream.
    static Log ofSystem()
    Create new Log instance using system default text output streams.
    static Log ofSystem​(boolean verbose)
    Create new Log instance using system default text output streams.
    void warn​(java.lang.String format, java.lang.Object... args)
    Print "warn" message to the error output stream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Log

      public Log​(java.io.PrintWriter out, java.io.PrintWriter err, boolean verbose)
  • Method Details

    • ofSystem

      public static Log ofSystem()
      Create new Log instance using system default text output streams.
    • ofSystem

      public static Log ofSystem​(boolean verbose)
      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.