LiveLog class abstract final

Centralized, redaction-safe logging facade.

Use these instead of print / debugPrint. Every message is passed through LogRedactor first, so credentials, tokens, cookies, OTPs and PII can never reach the output.

Build-mode gating is enforced via a ThresholdFilter computed from the configured levels, so in release builds only warning and error are emitted by default (configure with LiveLogConfig.releaseLevel). Wire crashSink to forward release errors to Crashlytics/Sentry.

LiveLog.d('cheap dev-only diagnostic');
LiveLog.e('payment failed', error: e, stackTrace: s);

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

crashSink CrashSink?
Crash-reporting destination for release errors. Also settable via LiveLogConfig.crashSink.
getter/setter pair
redactionActive bool
Whether redaction is currently in effect for this build.
no setter

Static Methods

configure(LiveLogConfig config) → void
Apply config. Optional — secure defaults apply without calling this.
d(Object? message) → void
Debug — dev only by default.
e(Object? message, {Object? error, StackTrace? stackTrace}) → void
Error — emitted in all builds; also forwarded to crashSink in release.
i(Object? message) → void
Info — dev only by default.
t(Object? message) → void
Trace — most verbose, dev only by default.
w(Object? message, {Object? error, StackTrace? stackTrace}) → void
Warning — emitted in all builds by default.