Skip to content
pubscout

stac_logger

1.1.0, released a year ago by stac.dev

Lightweight logging utility for the Stac framework that works across all platforms.

WASM-ready
$ flutter pub add stac_logger
Source repository

What it does

Provides a simple Log class with static methods for debug, info, warning, and error messages. It switches between Flutter's debugPrint on web/WASM and the logger package on native platforms.

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

Use it when

  • Need a quick, cross‑platform logging solution for a Flutter app
  • Want to avoid adding heavy logging dependencies
  • Need to log during development without affecting release builds

Skip it when

  • Require advanced structured logging or custom transports
  • Need integration with external log aggregation services

Strengths

  • Cross‑platform support including WASM
  • Very lightweight, no build_runner or codegen
  • Uses the robust logger package on native platforms

Weaknesses

  • Limited to basic log levels, no custom sinks
  • No support for asynchronous or batched logging
  • Not suitable for production‑grade log aggregation

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:stac_logger/stac_logger.dart';

void main() {
  Log.d('Debug message');
  Log.i('Info message');
  Log.w('Warning message');
  Log.e('Error message');
}

Alternatives

Packages that do the same job and could replace stac_logger.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • flutter_flavorizr

    A utility to easily create and configure application flavors in Flutter.

  • common_utils2

    Production-focused Flutter utilities for notifications, storage, connectivity, and media.

Works with

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