logging_appenders 0.2.1+1 copy "logging_appenders: ^0.2.1+1" to clipboard
logging_appenders: ^0.2.1+1 copied to clipboard

outdated

Logging appenders for the dart logging package for print, file and remote (logz, loki).

logging_appenders #

Pub codecov

Native dart package for logging appenders usable with the logging package.

It currently includes appenders for:

Performance of Remote Logging Appenders #

I am not sure if it is wise to use this in production, but it's great during beta testing with a handful of users so you have all logs available.

It tries to stay reasonable performant by batching log entries and sending them off only every few seconds. If network is down it will retry later. (with an ever increasing interval).

Getting Started #

After installing package logging and logging_appenders:

import 'package:logging/logging.dart';
import 'package:logging_appenders/logging_appenders.dart';

final _logger = Logger('main');

void main() {
  Logger.root.level = Level.ALL;
  PrintAppender()..attachToLogger(Logger.root);
  _logger.fine('Lorem ipsum');
}

Outputs:

$ dart main.dart
2019-08-19 15:36:03.827563 FINE main - Lorem ipsum
33
likes
0
pub points
93%
popularity

Publisher

verified publishercodeux.design

Logging appenders for the dart logging package for print, file and remote (logz, loki).

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

clock, dio, intl, logging, meta, rxdart

More

Packages that depend on logging_appenders