Log Record
Defined under the namespace Scandit.Datacapture.Core
- LogRecord
interface LogRecordAdded in version 8.7.0
One entry in the ScanditLogger buffer. Records are produced by the SDK; you receive them from ScanditLogger.getRecentLogs() and ScanditLogger.subscribe().
- ts
ts: number
Added in version 8.7.0
When the record was produced, as milliseconds since the Unix epoch.
- category
category: LogCategory
Added in version 8.7.0
The kind of activity the record describes.
- source
source: string
Added in version 8.7.0
Where the record came from, for example
ts.bridgefor a call made from JavaScript orandroid.bridgefor one reported by the native layer.
- message
message: string
Added in version 8.7.0
The name of the method or event the record is about.
- fields
fields?: Record<string,
unknown>Added in version 8.7.0
Additional key/value context, such as the identifiers of the mode or view involved, and the arguments of the call. Arguments are redacted against a fixed floor.
- durationMs
durationMs?: number
Added in version 8.7.0
How long the call took, for records that measure one.
- error
error?: LogRecordError
Added in version 8.7.0
The failure this record reports, if it reports one.