handlers library
This package library provides a set of logging record handlers such as ConsoleHandler, MemoryHandler, StreamHandler, FileHandler, and MultiHandler.
To use this library in your code:
import 'package:strlog/handlers.dart';
Classes
- ConsoleHandler
- ConsoleHandler prints log records using built-in print.
- FileHandler
- FileHandler writes log records to a file with rotation capabilities.
- LogFileRotationPolicy
- LogFileRotationPolicy determines under what conditions the FileHandler should stop writing to the current log file and start writing to a new one.
- LogFileStat
- LogFileStat represents statistics about a log file, including its size and modification time.
- MemoryHandler
- MemoryHandler is used to keep records in memory; it keeps sequence of records in the emitting order.
- MultiHandler
- MultiHandler composites multiple handlers into one handler; any logging records that are delegated to this handler will be propagated to composed handlers.
- StreamHandler
- StreamHandler delegates log records downstream.