file_lumberdash 0.0.1 copy "file_lumberdash: ^0.0.1" to clipboard
file_lumberdash: ^0.0.1 copied to clipboard

outdated

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
40
pub points
30%
popularity

Publisher

verified publisherbmwtech.dev

Lumberdash package that outputs your logs to the file system.

Homepage

License

MIT (license)

Dependencies

lumberdash, meta, synchronized

More

Packages that depend on file_lumberdash