IsolateFileLogHandler class

A implementation of BDCleanableLogHandler that write BDLogRecord to files in a different isolate.

Implemented types

Constructors

IsolateFileLogHandler(Directory logFileDirectory, {int maxFilesCount = 5, String logNamePrefix = '_log', int maxLogSizeInMb = 5, List<BDLevel> supportedLevels = const <BDLevel>[BDLevel.warning, BDLevel.success, BDLevel.error]})
Create a new instance of IsolateFileLogHandler.

Properties

hashCode int
The hash code for this object.
no setterinherited
logFileDirectory Directory
Directory where to store the log files.
final
logNamePrefix String
Prefix of each log files created by this IsolateFileLogHandler.
final
maxFilesCount int
Maximum count of files to keep.
final
maxLogSizeInMb int
Maximum size of a log file in MB.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedLevels List<BDLevel>
Supported BDLevel of BDLogRecord.
final

Methods

clean() Future<void>
Clean resources contained within this BDLogHandler.
override
handleRecord(BDLogRecord record) Future<void>
Handle the BDLogRecord.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supportLevel(BDLevel level) bool
Allow the BDLogHandler to specify which BDLevel of BDLogRecord he can handle.
override
toString() String
A string representation of this object.
inherited

Operators

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