humio 0.0.3 copy "humio: ^0.0.3" to clipboard
humio: ^0.0.3 copied to clipboard

outdated

Analytics and error logging from your Flutter app to Humio - simple and easy.

humio #

Analytics and error logging from your Flutter app to Humio.

Getting Started #

To use this plugin, add humio as a dependency in your pubspec.yaml file.

When humio is added to your project you can initialize it using your Humio ingest token:

var humio = Humio('your-humio-ingest-token');

You are now ready to log to Humio:

await humio.information('Logging using the information level');

Example #

A longer example:

var humio = Humio('your-humio-ingest-token');

await humio.information('The example app uses extension methods to avoid magic strings for the level');

await humio.verbose('There are extension methods available for the most common log levels');

try {
  throw 'Something bad happened';
} catch (error, stackTrace) {
  await humio.error(
      'Errors can easily be logged with the error message and the corresponding stack trace',
      error,
      stackTrace);
}

for more examples look in example/main.dart.

0
likes
0
points
1.04k
downloads

Publisher

verified publisherholion.dk

Weekly Downloads

Analytics and error logging from your Flutter app to Humio - simple and easy.

Homepage

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on humio