FakeLaneLogger class
A LaneLogger that records messages instead of printing them.
Errors are recorded as error: <message> and warnings as
warning: <message>; other levels are recorded as is. detail messages
are only recorded when verbose is true.
Questions are recorded as confirm: <message> and answered with
confirmAnswer, but only when interactive is true. It is false by
default, like on CI.
- Inheritance
-
- Object
- LaneLogger
- FakeLaneLogger
Constructors
Properties
- githubActions → bool
-
Whether errors and warnings are printed as GitHub Actions annotations.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactive → bool
-
Whether it is fine to ask the user a question.
finalinherited
-
lines
→ List<
String> -
Everything logged so far, in order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verbose ↔ bool
-
Whether detail messages are printed.
getter/setter pairinherited
Methods
-
confirm(
String message, {bool defaultValue = false}) → bool -
Asks a yes or no question.
inherited
-
detail(
String message) → void -
Extra information, printed only when verbose is true.
inherited
-
error(
String message) → void -
Something failed.
inherited
-
info(
String message) → void -
A normal progress message.
inherited
-
mask(
String secret) → void -
Replaces
secretwith***in all output from now on.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
success(
String message) → void -
A step or lane finished successfully.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
warn(
String message) → void -
Something looks wrong but the lane continues.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited