Class Log

java.lang.Object
io.github.wankdanker.clyops.Log

public final class Log extends Object
Logging to stderr with timestamps and colors (spec section 11): import static ...Log.*.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    die(int code, String format, Object... args)
    Log an error (never suppressed) and exit with code.
    static void
    error(String format, Object... args)
    Log an error to stderr using String.format arguments.
    static void
    info(String format, Object... args)
    Log an informational message to stderr using String.format arguments.
    static void
    setSilent(boolean value)
    Suppress info/warn/error/success output (die and parse errors still print).
    static void
    success(String format, Object... args)
    Log a success message to stderr using String.format arguments.
    static void
    warn(String format, Object... args)
    Log a warning to stderr using String.format arguments.

    Methods inherited from class java.lang.Object

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

    • setSilent

      public static void setSilent(boolean value)
      Suppress info/warn/error/success output (die and parse errors still print).
    • info

      public static void info(String format, Object... args)
      Log an informational message to stderr using String.format arguments.
    • warn

      public static void warn(String format, Object... args)
      Log a warning to stderr using String.format arguments.
    • error

      public static void error(String format, Object... args)
      Log an error to stderr using String.format arguments.
    • success

      public static void success(String format, Object... args)
      Log a success message to stderr using String.format arguments.
    • die

      public static void die(int code, String format, Object... args)
      Log an error (never suppressed) and exit with code.