logs_spotter 0.0.5
logs_spotter: ^0.0.5 copied to clipboard
Spotter is a open source log engine plugin for Flutter. There allow developer to see what happen whenever or remotely debug their application
logs_spotter #
Spotter is a open source log engine plugin for Flutter. There allow developer to see what happen whenever or remotely debug their application
Setup #
Add the following to your "pubspec.yaml" file:
logs_spotter: ^0.0.3
Usage #
Call this to configure spotter engine
await Spotter().initializeEngine();
initializeEngine() Params descriptions
| Argument | Type | Required | Details |
| customId | String? | No | custom app, device or user identifier Ex : 518739839 |
| fileName | String | No | Local file name |
| writeToConsole | bool | No | Show log on console Ex : true |
| writeToFile | bool | No | Enable in file writing Ex : true |
| writeToFirebase | bool | No | Enable remote writing (Firebase) Ex : true |
| exportLocal | bool | No | Export local logs on remote observe (Firebase) Ex : true |
To log messages
//To log an message
"initState".spot();
//add TAG
"incrementCounter: $_counter".spot(tag: CLICK);
By default this method write log on console
Note
The defaut values for tag property are: click 🖱️, error 🚨, warning 🚧, debug 🐞, request 📤, response 📥