Search packages, repositories and app categories

Package detailsv1.3.0

logging

Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
13.5M
Likes
1K
Pub points
160

Install package

flutter pub add logging

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The logging package provides a simple, consistent API for debugging and error logging in Dart applications. Inspired by logging frameworks in other languages, it enables developers to emit log messages with different severity levels (e.g., fine, info, warning, severe). It supports structured logging and integrates well with various platforms including mobile, web, and desktop. The package is lightweight and designed for use during development and production debugging.

Use cases

  • Debugging application flow
  • Tracking runtime errors
  • Monitoring application behavior
  • Capturing user actions for analysis
  • Integrating with external logging services

Key features

  • Severity-based log levels
  • Cross-platform compatibility
  • Simple and intuitive API
  • Supports structured logging
  • Easy integration with Flutter apps

Suitable for

  • Developers building Flutter apps
  • Teams needing consistent logging across platforms
  • Applications requiring debug and production logging
  • Projects with observability needs
  • Frontend and backend Dart code

Considerations

  • Not intended for high-volume production logging
  • Requires manual configuration for advanced routing
  • No built-in log persistence
  • Limited filtering options out of the box
  • May need additional setup for remote logging

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

Categories

Source repository

Projects using this package

Rankings