Skip to main content

logsmith 1.0.0 copy "logsmith: ^1.0.0" to clipboard
logsmith: ^1.0.0 copied to clipboard

A declarative structured-logging library — typed attrs, themed output, six formats (text, JSON, YAML, TOML, Mace, logfmt), and categorical stdout/stderr routing.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add logsmith

With Flutter:

 $ flutter pub add logsmith

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  logsmith: ^1.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:logsmith/logsmith.dart';
0
likes
160
points
151
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A declarative structured-logging library — typed attrs, themed output, six formats (text, JSON, YAML, TOML, Mace, logfmt), and categorical stdout/stderr routing.

Repository (GitHub)
View/report issues

Topics

#logging #structured-logging #terminal #ansi #cli

License

BSD-3-Clause (license)

Dependencies

toml

More

Packages that depend on logsmith