jetlog 0.5.1

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 {
  logger.bind({
    const log.Str('hello', 'world')
  }).info('Greeting');
}

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

License #

Released under the MIT license.

example/README.md

This directory contains project examples #

  • [stdout_example.dart] example shows how to redirect debug/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:


dependencies:
  jetlog: ^0.5.1

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';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
30
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
61
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

Platforms

Detected platforms: Flutter, web, other

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

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

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

Dependencies

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