agent_logger 0.0.4 copy "agent_logger: ^0.0.4" to clipboard
agent_logger: ^0.0.4 copied to clipboard

package to create and read application logs in the application itself.

Hey, everybody. I am sharing a package to create and read application logs in the application itself. #

The package is inspired by Logger and replicates its functionality.

To open AgentLogger, simply shake the device #

  • You can share the logs on social media, or just copy the text of the logs.

  • Click and highlight the logs you want, then the share button at the top to send only what you need.

  • Or just click the share button at the top to send the entire logging history.

Installing #

  1. initialize AgentLogger as Logger
var logger = LoggerWriter();
  1. Wrap your parent application widget in an AgentLogger widget.
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3:
            true, 
      ),
      home: AgentLogger(
        child: const MyHomePage(title: 'Flutter Demo Home Page'),
        enable: true, 
      ),
    );
  }
}
  1. And log whatever you need to log according to the Logger package instructions
 logger.i('test log $_counter');

I hope this tool will help you in debugging and testing your applications. #

4
likes
130
pub points
39%
popularity

Publisher

unverified uploader

package to create and read application logs in the application itself.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, intl, logger, path_provider, sensors_plus, share_plus

More

Packages that depend on agent_logger