logging_appenders
2.0.0+1, released 10 months ago by codeux.design
Logging appenders for the dart logging package for print, file, and remote logging.
What it does
Provides native Dart appenders for the logging package. Includes local logging options like PrintAppender and RotatingFileAppender, alongside remote logging options for services such as logz.io, loki, and Graylog (GELF).
AI-written summary of version 2.0.0+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are using the dart logging package and need local file or console appenders.
- You want to batch and send logs to remote services like logz.io, loki, or Graylog during beta testing.
Skip it when
- You require a completely custom logging facade that does not use the standard dart logging package.
Strengths
- Supports multiple local and remote logging targets out of the box.
- Batches log entries for remote logging to stay reasonably performant.
- Includes features like exception chaining and color formatters for interactive terminals.
Weaknesses
- Remote logging appenders may not be wise to use heavily in production due to network batching limitations.
- Limited built-in configuration alternatives beyond the documented remote services.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 5
Install package logging and logging_appenders, then attach the appenders to your loggers.
import 'package:logging/logging.dart';
import 'package:logging_appenders/logging_appenders.dart';
final _logger = Logger('main');
void main() {
PrintAppender.setupLogging();
_logger.fine('Lorem ipsum');
}Alternatives
Packages that do the same job and could replace logging_appenders.
- easy_logger
A lightweight Flutter logger with configurable levels, build‑mode control and custom printer.
42Compare - df_log
A Dart logging utility offering styled, tag‑filtered, in‑memory logs with JSON export and callbacks.
72Compare - talker
Advanced error handler and logger package for Flutter and Dart apps.
94Compare - talker_logger
Lightweight, customizable logger with filters, formatters and log levels
90Compare
Works with
Packages commonly used together with logging_appenders: ones it builds on, ones built on it, and its own family.
- clocklogging_appenders depends on itA fakeable wrapper for dart:core clock APIs.
- intllogging_appenders depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- logginglogging_appenders depends on itProvides configurable logging with levels and stream listeners for Dart apps.