golog 0.1.3
SDKflutter
Platformandroidioswindowslinuxmacosweb
View custom logger inside app. Works on debug and release mode.
Golog
View custom logger inside app. Works on debug and release mode.
Features
Getting started
flutter pub add golog
Usage
- Add
Golog.builder()to your MaterialApp.builder:
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
builder: Golog.builder(),
);
}
}
- Alternatively, if you are not using
Golog.builder()you can wrap your child widget inside MaterialApp.builder usingGologWidget():
return MaterialApp(
builder: (BuildContext context, Widget? child) {
return GologWidget(
context: context,
child: MediaQuery(
data: MediaQuery.of(context),
child: child ?? const SizedBox(),
),
);
}
)
- Send your custom log:
Golog.add('Log Title', body: {'hello': 'world', 'foo': 123});
- Get log list:
Golog.list();
- Tap item to see the body, tap again to copy its value to clipboard.
Additional information
Contributions of any kind are welcome. Feel free to improve the library by creating a pull request or opening an issue.