Console-based Tracing implementation with colored, formatted output.
Prints trace events to standard output with ANSI color formatting for improved readability during development and debugging. Returns Result[Unit] to support functional composition.
== Features ==
Color-coded output by event type (errors in red, success in green, etc.)
Visual separators and headers for different trace sections
Emits a named CustomEvent with no additional data payload.
Emits a named CustomEvent with no additional data payload.
Wraps the string in a TraceEvent.CustomEvent with an empty JSON object as its data field before delegating to traceEvent(TraceEvent). Use the typed overload for events that carry structured data.
Value parameters
event
Human-readable event name forwarded as CustomEvent.name