logging library

The Digia SDK's logging surface.

A separate library, not part of package:digia_engage/digia_engage.dart: host apps configure verbosity through DigiaConfig.logLevel and need nothing from here, while the CEP plugin packages log in the SDK's style and do.

import 'package:digia_engage/logging.dart';

const _log = DigiaLogger('CT');
_log.e('Template has no Digia payload (template=$name)');
// 🔴 [DIGIA-CT] [ERROR]: Template has no Digia payload (template=…)

Classes

DiagnosticReason
One pinned snake_case symbol naming why something happened.
DigiaLogger
The SDK's one logging style, across core and every CEP plugin.

Enums

DigiaLogSeverity
How loud one log line is.

Functions

maskSecret(String? secret) → String
Renders secret safe to put in a log line: first four characters, ...., last four.