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

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.defaultImplementation('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.defaultImplementation('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/humio_basic_example.dart.

Enrichers #

If you have certain fields you always want to send to Humio, you should consider using Enrichers.

Enrichers can be added dynamically and when they have been added they will annotate every log statement with the fields they provide.

View the example in example/humio_with_enrichers.dart for a simple example.

0
likes
130
pub points
69%
popularity

Publisher

verified publisherholion.dk

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

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on humio