PayriffLogEntry class final

One line of SDK logging, delivered through Payriff.logStream when PayriffConfig.enableLogging is on.

Log lines never contain card data, the order's client secret or the publishable key. URLs are redacted, in the HTTP details and logged bodies too: http(s) URLs lose their user info, query string and fragment, and only Payriff's API hosts keep the path, with segments of 16 or more characters shortened (/api/v3/client/orders/7c9e…0ae7/pay); other hosts, such as a bank's 3-D Secure pages, are logged as scheme://host[:port]. Any other scheme is logged as <scheme>:….

Annotations

Constructors

PayriffLogEntry({required PayriffLogLevel level, required String message, required DateTime timestamp})
Creates a log entry.
const

Properties

formatted → String
The console form: [Payriff] [LEVEL] message, for example [Payriff] [INFO] confirmCardPayment: order 7c9e6679-….
no setter
hashCode → int
The hash code for this object.
no setterinherited
level → PayriffLogLevel
The severity.
final
message → String
The message, without the [Payriff] [LEVEL] prefix.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timestamp → DateTime
When the entry was created.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
The same as formatted.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited