Logger class

Centralized logging so build output is scannable and failures are easy to pinpoint. Replaces ad-hoc print() calls throughout the CLI.

Constructors

Logger()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

jsonMode ↔ bool
When true, informational output goes to stderr so stdout stays a clean machine-readable stream (used by the --json flags).
getter/setter pair
verbose ↔ bool
Enabled by the global --verbose flag. Prints stack traces on errors and turns on Slack debug output.
getter/setter pair

Static Methods

debug(String message) → void
Only printed when verbose is on.
error(String message, {Object? cause, StackTrace? stackTrace}) → void
info(String message) → void
phase(String name) → void
success(String message) → void
warning(String message) → void