Skip to content
pubscout

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.

$ flutter pub add logging_appenders
Source repository

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.

  • df_log

    A Dart logging utility offering styled, tag‑filtered, in‑memory logs with JSON export and callbacks.

  • talker

    Advanced error handler and logger package for Flutter and Dart apps.

  • talker_logger

    Lightweight, customizable logger with filters, formatters and log levels

Works with

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