Skip to content
pubscout

logging_to_logcat

1.1.0, released 3 months ago by an unverified publisher

Forwards dart:developer logging output to Android's logcat.

WASM-ready
$ flutter pub add logging_to_logcat
Source repository

What it does

Extends the logging package with an activateLogcat() method. This sends all logs recorded via Logger directly to Android's logcat using native method channels, mapping custom severity levels appropriately.

AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You are developing a Flutter app for Android and use the logging package
  • You want to view your Dart logs inside Android Studio's Logcat

Skip it when

  • You are targeting non-Android platforms exclusively
  • You do not use the logging package

Strengths

  • Seamless integration with the popular logging package
  • Maps standard logging levels to Android logcat levels cleanly

Weaknesses

  • Only works on Android
  • Not documented for platforms other than Android

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Invoke Logger.root.activateLogcat() during app startup.

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

Logger.root.activateLogcat();

final Logger log = Logger("MyLogger");
log.info("demo logline!");

Alternatives

Packages that do the same job and could replace logging_to_logcat.

  • easy_logger

    A lightweight Flutter logger with configurable levels, build‑mode control and custom printer.

  • sentry_logging

    Adds Sentry logging integration for the Dart logging package

  • logger

    An extensible logger for printing formatted logs with levels, custom filters, and printers.

  • sentry_drift

    Performance tracing integration for the drift SQL package using Sentry.

Works with

Packages commonly used together with logging_to_logcat: ones it builds on, ones built on it, and its own family.