surf_logger 0.0.1-dev.8 copy "surf_logger: ^0.0.1-dev.8" to clipboard
surf_logger: ^0.0.1-dev.8 copied to clipboard

outdated

Logger for Dart & Flutter

SurfGear

surf_logger #

Logger for Dart & Flutter

Usage #

Main classes:

  1. Logger
  2. RemoteLogger

Logger #

Logger is used as a singleton. The main methods:

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

Logging strategies can be supplemented by implementing the LogStrategy heir

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