golog 0.1.2 copy "golog: ^0.1.2" to clipboard
golog: ^0.1.2 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.

0
likes
150
pub points
55%
popularity

Publisher

verified publisherdigitalservice.id

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on golog