FileLogSessions class final
Reader for log sessions stored in a directory by FileLogStorage.
Constructors
- FileLogSessions(String directory)
Properties
Methods
-
archiveTo(
File target, {Iterable< FileLogSession> ? sessions}) → Future<void> -
Packs the given
sessions(all by default) into a single ZIP archivetarget. Inside the archive every session is a separate file<sessionId>.jsonlwith the same content exportTo would produce. An existingtargetis 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>.jsonlintotarget(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