journal_stdio 0.1.0 copy "journal_stdio: ^0.1.0" to clipboard
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.

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.

0
likes
140
points
106
downloads

Publisher

verified publisherskreborn.me

Weekly Downloads

An output targeting standard IO for `journal`.

Repository (GitHub)

Topics

#journal #cli #console #terminal #server

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

journal, meta, stack_trace

More

Packages that depend on journal_stdio