TuiEvidence class final
Optional evidence logger for structured runtime diagnostics.
Logging is enabled when ARTISANAL_TUI_EVIDENCE is set, or when
configureForTest explicitly enables it.
Constructors
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 Methods
-
clearTestOverrides(
) → void - Clears test overrides and returns to env-based behavior.
-
close(
) → void - Closes the evidence file and drops in-flight buffers.
-
configureForTest(
{bool? enabled, String? path, String? runId, bool clear = false}) → void - Enable/disable evidence logging for tests regardless of process env.
-
logDecision(
{required String decisionType, required String result, required Map< String, Object?> factors, String type = 'runtime.decision'}) → void - Emits one decision event.
-
tryParseLine(
String line) → TuiEvidenceRecord? - Parses one strict JSONL evidence line.