FileLogSessions class final

Reader for log sessions stored in a directory by FileLogStorage.

Constructors

FileLogSessions(String directory)

Properties

directory String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

archiveTo(File target, {Iterable<FileLogSession>? sessions}) Future<void>
Packs the given sessions (all by default) into a single ZIP archive target. Inside the archive every session is a separate file <sessionId>.jsonl with the same content exportTo would produce. An existing target is overwritten.
exportTo(Directory target, {Iterable<FileLogSession>? sessions}) Future<List<File>>
Exports each of the given sessions (all by default) as a separate plain file <sessionId>.jsonl into target (created recursively).
list() Future<List<FileLogSession>>
All sessions in directory, sorted from oldest to newest (by last activity).
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