logging_handlers 0.5.0+3 logging_handlers: ^0.5.0+3 copied to clipboard
A selection of handlers that you can use as targets for the "logger" pub package. Stop using print() and start using logger.info()
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add logging_handlers
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
logging_handlers: ^0.5.0+3
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:logging_handlers/browser_logging_handlers.dart';
import 'package:logging_handlers/logging_handlers_shared.dart';
import 'package:logging_handlers/server_logging_handlers.dart';