Skip to content

metaflowltd/flutter_paper_trail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_paper_trail

Send logs to Papertrail

Usage

Setup:

import 'package:flutter_paper_trail/flutter_paper_trail.dart';

FlutterPaperTrail.initLogger(
        hostName: "secret.papertrailapp.com",
        programName: "flutter-test-app",
        port: 9999,
        machineName: "Simulator(iPhone8)");
    //for machine name use Flutter DeviceInfoPlugin

Calling:

FlutterPaperTrail.logError("My message");

Extra setup (when a user is logged in):

FlutterPaperTrail.setUserId("JohnDeer391");