surf_logger 1.1.0 icon indicating copy to clipboard operation
surf_logger: ^1.1.0 copied to clipboard

Logger for Dart & Flutter

Surf Logger #

Build Status Coverage Status Pub Version Pub Likes Pub popularity Flutter Platform

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

Surf Logger

Description #

Logger for Dart & Flutter.

Main classes:

Example #

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: $currentVersion$

At this moment, the current version of surf_logger is surf_logger version.

Changelog #

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

Issues #

To report your issues, file directly in the Issues section.

Contribute #

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

Your 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