Interface: CapturedLog
@termwright/test / CapturedLog
Interface: CapturedLog
Section titled “Interface: CapturedLog”Defined in: test/src/logs.ts:15
One log entry, tagged with the session that produced it.
Extends
Section titled “Extends”AppLogEvent
Properties
Section titled “Properties”label?
Section titled “label?”
readonlyoptionallabel?:string
Defined in: driver/dist/session-DOkKra9W.d.ts:794
Inherited from
Section titled “Inherited from”AppLogEvent.label
readonlyoptionalline?:string
Defined in: driver/dist/session-DOkKra9W.d.ts:801
Raw line, for a followed file. Truncated lines end with an ellipsis.
Inherited from
Section titled “Inherited from”AppLogEvent.line
readonlyoptionalpath?:string
Defined in: driver/dist/session-DOkKra9W.d.ts:799
Path of the followed file, for source: 'file'. A label can be short and
shared between sources; the path is what a reader opens.
Inherited from
Section titled “Inherited from”AppLogEvent.path
record?
Section titled “record?”
readonlyoptionalrecord?:LogRecord
Defined in: driver/dist/session-DOkKra9W.d.ts:803
Structured record, for an adapter that negotiated the logs capability.
Inherited from
Section titled “Inherited from”AppLogEvent.record
sessionId
Section titled “sessionId”
readonlysessionId:string
Defined in: test/src/logs.ts:16
source
Section titled “source”
readonlysource:"file"|"adapter"
Defined in: driver/dist/session-DOkKra9W.d.ts:793
Inherited from
Section titled “Inherited from”AppLogEvent.source
timeMs
Section titled “timeMs”
readonlytimeMs:number
Defined in: driver/dist/session-DOkKra9W.d.ts:812
Milliseconds since session start, on the same clock as every other event.
For a file this is when the driver read the line, not when the program wrote it: the two differ by up to one poll interval, so treat it as an upper bound rather than as the write timestamp. A record carries the adapter’s own timestamp inside it.
Inherited from
Section titled “Inherited from”AppLogEvent.timeMs