journal_stdio 0.1.0
journal_stdio: ^0.1.0 copied to clipboard
An output targeting standard IO for `journal`.
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.dev 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.
Alternatively, a plain JSON output is also available as jsonFormatter
.
Release history #
See the changelog for a detailed list of changes throughout the package's history.