LokotroPayLog class

Redaction-aware structured logger for the Lokotro Pay SDK.

PCI DSS 3.2 / 3.4 / 8.3.6 — PAN, CVV, PIN, OTP, and other authentication material must never appear in release-build logs. This helper:

  1. Becomes a no-op in release builds (kReleaseMode).
  2. Redacts known sensitive keys when callers pass a structured map.

Use this INSTEAD OF bare debugPrint(...) / print(...) in any code path that touches payment data.

Example: LokotroPayLog.d('payment.submit', {'pan': pan, 'amount': amount}); // debug builds: payment.submit {pan: REDACTED, amount: 1000} // release build: (no output)

Constructors

LokotroPayLog()

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

d(String tag, [Map<String, Object?>? extra]) → void
Debug-only structured log. No-op in release.
m(String tag, String message) → void
Debug-only message log without structured fields. No-op in release. Caller is responsible for not interpolating sensitive values.