jetlog 0.6.0

jetlog ยท Test Status Code Coveraege

Fast, structured, leveled logging for Dart.

jetlog's API is designed to provide great development experience without losing performance. jetlog allows to format logging records into different representations and supports formatting to JSON and text out of the box.

There are a couple of other features developer may benefit from:

  • Blazing fast logging
  • Efficient logging of structured data
  • Unambiguous support for loggers hierarchy
  • Exchangeable logging handlers
  • Logging filters

Installation #

To get mostly up to date package install it through pub.

pub get jetlog

Getting started #

The easiest way to get up and running is to use global logger provided in global_logger package library.

import 'package:jetlog/global_logger.dart' as logger;
import 'package:jetlog/jetlog.dart' as log show Str;

void main() async {
    const log.Str('hello', 'world')

// => '2019-06-27 15:37:38.046859 [INFO]: Greeting hello=world'

License #

Released under the MIT license. #

v0.6.0 #

  • StreamHandler throws on null stream as well as null formatter.


This directory contains project examples #

  • stdout_example.dart provides example how to redirect debug/trace/info to stdout and warning/error/fatal to stderr

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  jetlog: ^0.6.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:jetlog/jetlog.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 13, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
meta ^1.1.7 1.1.8
Dev dependencies
analyzer ^0.36.4
test ^1.6.4