Surf Logger

Build Status Coverage Status Pub Version Pub Likes Flutter Platform

This package is part of the SurfGear toolset made by Surf.

About

Logger for Dart & Flutter

Usage

Main classes:

Logger

Logger is used as a singleton. The main methods:

  • .d - debug
  • .w - warn, for expected error
  • .e - error

You can use either DebugLogStrategy as strategy for Logger or RemoteLogStrategy for RemoteLogger. Or create your own strategy by implementing LogStrategy.

When adding RemoteLogStrategy to the remote server, all logs are sent above the WARN level.

In order not to pollute Crashlytics we use Logger # w () for the expected errors.

Installation

Add surf_logger to your pubspec.yaml file:

dependencies:
  surf_logger: ^1.0.0

You can use both stable and dev versions of the package listed above in the badges bar.

Changelog

All notable changes to this project will be documented in this file.

Issues

For issues, file directly in the main SurfGear repo.

Contribute

If you would like to contribute to the package (e.g. by improving the documentation, solving a bug or adding a cool new feature), please review our contribution guide first and send us your pull request.

You PRs are always welcome.

How to reach us

Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.

Telegram

License

Apache License, Version 2.0

Libraries

surf_logger