Journal standard IO output

An output targeting standard IO for journal.

Writes entries to the standard output.

Supports both pretty, formatted, human-readable, as well as plain JSON output out of the box.

This package only works on platforms with standard IO available. In all other environments, it simply ignores the output.

Published to the pub.flutter-io.cn package registry.

Usage

To use this output, add it to Journal.outputs.

import 'package:journal/journal.dart';
import 'package:journal_stdio/journal_stdio.dart';

Journal.outputs = const [StdioOutput()];

The default output is pretty, formatted, and human-readable.

Note that you might need to set forceFormat to get properly formatted output in your terminal.

Default output

Alternatively, a plain JSON output is also available as jsonFormatter.

JSON output

Release history

See the changelog for a detailed list of changes throughout the package's history.

Libraries

journal_stdio