Package io.github.wankdanker.clyops
Class Log
java.lang.Object
io.github.wankdanker.clyops.Log
Logging to stderr with timestamps and colors (spec section 11):
import static ...Log.*.-
Method Summary
Modifier and TypeMethodDescriptionstatic voidLog an error (never suppressed) and exit withcode.static voidLog an error to stderr using String.format arguments.static voidLog an informational message to stderr using String.format arguments.static voidsetSilent(boolean value) Suppress info/warn/error/success output (die and parse errors still print).static voidLog a success message to stderr using String.format arguments.static voidLog a warning to stderr using String.format arguments.
-
Method Details
-
setSilent
public static void setSilent(boolean value) Suppress info/warn/error/success output (die and parse errors still print). -
info
Log an informational message to stderr using String.format arguments. -
warn
Log a warning to stderr using String.format arguments. -
error
Log an error to stderr using String.format arguments. -
success
Log a success message to stderr using String.format arguments. -
die
Log an error (never suppressed) and exit withcode.
-