LogFileTransport constructor

LogFileTransport({
  1. required String filePath,
  2. int maxFileSize = 10 * 1024 * 1024,
  3. int maxFiles = 5,
  4. IOSink? sink,
})

Creates a file transport.

Directory is created if it doesn't exist.

Implementation

LogFileTransport({
  required this.filePath,
  this.maxFileSize = 10 * 1024 * 1024, // 10 MB
  this.maxFiles = 5,
  IOSink? sink,
}) : _sink = sink;