file_lumberdash 0.0.1
file_lumberdash: ^0.0.1

Dart native
Flutter Android iOS

Lumberdash package that outputs your logs to the file system.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/material.dart';
import 'package:lumberdash/lumberdash.dart';
import 'package:path_provider/path_provider.dart';
import 'package:file_lumberdash/file_lumberdash.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  Directory appDocDir = await getApplicationDocumentsDirectory();
  String appDocPath = appDocDir.path;
  final currentDate = DateTime.now();
  final fileName =
      '${currentDate.year}-${currentDate.month}-${currentDate.day}-logs';
  putLumberdashToWork(withClients: [
    FileLumberdash(
      filePath: '$appDocPath/$fileName.txt',
    ),
  ]);
  logWarning('Hello Warning');
  logFatal('Hello Fatal!');
  logMessage('Hello Message!');
  logError(Exception('Hello Error'));
}
0
likes
90
pub points
79%
popularity

Publisher

bmwtech.dev

Lumberdash package that outputs your logs to the file system.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

lumberdash, meta, synchronized

More

Packages that depend on file_lumberdash