golog 0.1.3 copy "golog: ^0.1.3" to clipboard
golog: ^0.1.3 copied to clipboard

View custom logger inside app. Works on debug and release mode.

Golog #

Pub.dev Badge GitHub Build Badge Apache 2.0 License Badge Flutter Platform Badge

View custom logger inside app. Works on debug and release mode.

Features #

Screenshot 1 Screenshot 2

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 using GologWidget():
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.

1
likes
140
points
91
downloads

Publisher

verified publisherdigitalservice.id

Weekly Downloads

View custom logger inside app. Works on debug and release mode.

Repository (GitHub)

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on golog