footprint 1.1.3 copy "footprint: ^1.1.3" to clipboard
footprint: ^1.1.3 copied to clipboard

discontinued
outdated

Footprint. configurable log to console create footprints and report to crashlytics with ease

example/main.dart

import 'dart:io';

import 'package:footprint/src/footprint_impl.dart';
import 'package:footprint/src/private_service.dart';

void main() async {
  var saveDir = Directory('C:' + Platform.pathSeparator + 'Footprint');
  var uploadDir = Directory('C:' + Platform.pathSeparator + 'Footprint' + Platform.pathSeparator + 'Uploads');
  Footprint.privateService = PrivateService(500, saveDir, (file) async {
    var fileName = (file.path.split(Platform.pathSeparator).last);
    var uploadFile = await File(uploadDir.path + Platform.pathSeparator + fileName).create(recursive: true);
    String content = await file.readAsString();
    await uploadFile.writeAsString(content);
  });

  try {
    throw OutOfMemoryError();
  } catch (e, stacktrace) {
    Footprint.report(e, stacktrace);
  }
  Footprint.log('logging');
  Footprint.footprint('footprint');

  await Footprint.uploadReportsToPrivateService();
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Footprint. configurable log to console create footprints and report to crashlytics with ease

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on footprint