jetlog 0.5.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.

Use this package as a library

1. Depend on it

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

  jetlog: ^0.5.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 Nov 4, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.0
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:jetlog/jetlog.dart.

Health suggestions

Format lib/src/formatters/json_formatter.dart.

Run dartfmt to format lib/src/formatters/json_formatter.dart.

Format lib/src/formatters/text_formatter.dart.

Run dartfmt to format lib/src/formatters/text_formatter.dart.

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and jetlog.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


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