logging_to_logcat 0.0.1 copy "logging_to_logcat: ^0.0.1" to clipboard
logging_to_logcat: ^0.0.1 copied to clipboard

outdated

Adds activateLogcat() method to logging's Logger class which results in everything that's logged to Logger being displayed by Android's logcat.

logging_to_logcat #

This package extends the logging-package with the functionality to deliver it's logs to Android's Logcat.

Usage #

After adding the package it's easy to instruct Logger to send it's logging data to Android's Logcat:

import 'package:logging_to_logcat/logging_to_logcat.dart';

Logger.root.activateLogcat();

Documentation #

Logger has a more fine-grained way of defining logging levels then Android. This plugin does the following mappings:

SHOUT -> ERROR SEVERE -> Error WARNING -> WARNING INFO -> INFO CONFIG -> DEBUG FINE -> VERBOSE FINER -> VERBOSE FINEST -> VERBOSE

Note that by default Logger silences messages under the level of INFO. If it's desired that all Logging makes it to Logcat it's necessary to call:

Logger.root.level = Level.ALL;
12
likes
0
points
6.39k
downloads

Publisher

unverified uploader

Weekly Downloads

Adds activateLogcat() method to logging's Logger class which results in everything that's logged to Logger being displayed by Android's logcat.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, logging

More

Packages that depend on logging_to_logcat