stac_logger
1.1.0, released a year ago by stac.dev
Lightweight logging utility for the Stac framework that works across all platforms.
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.
76Compare - flutter_flavorizr
A utility to easily create and configure application flavors in Flutter.
86Compare - common_utils2
Production-focused Flutter utilities for notifications, storage, connectivity, and media.
55Compare
Works with
Packages commonly used together with stac_logger: ones it builds on, ones built on it, and its own family.
- loggerstac_logger depends on itAn extensible logger for printing formatted logs with levels, custom filters, and printers.
- stac_frameworkSame familyEnables easy creation of custom parsers for widgets and actions in server-driven UI implementations.
- stacBuilt on stac_loggerA Server-Driven UI framework for Flutter that renders JSON payloads into native widgets.
- stac_coreBuilt on stac_loggerCore library for the Stac server‑driven UI framework, providing models, interfaces, and utilities.