FileLoggerWorker class
A logger worker that writes log messages to a file with rotation.
- Implemented types
Constructors
Properties
- batchSize → int
-
The number of log messages to buffer before writing to the file.
final
- encoding → Encoding
-
The encoding to use for writing to the file.
final
- flushInterval → Duration
-
The interval at which to flush the buffer to the file.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logFilePath → String
-
The path to the log file.
final
- maxBackupFiles → int
-
The maximum number of backup files to keep.
final
- maxFileSizeInBytes → int
-
The maximum size of the log file in bytes before rotation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
Disposes of the worker, releasing any resources.
override
-
log(
String message) → Future< void> -
Logs a message.
messageis the log message to be processed by the worker.override -
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