logger_crispin_transport 1.0.0 copy "logger_crispin_transport: ^1.0.0" to clipboard
logger_crispin_transport: ^1.0.0 copied to clipboard

Crispin Transport for Logger (https://pub.dev/packages/logger)

example/main.dart

import 'package:crispin/crispin.dart';
import 'package:logger_crispin_transport/logger_crispin_transport.dart';

void main() {
  Crispin().addTransport(LoggerCrispinTransport(LoggerCrispinTransportOptions(level: 'warn')));
  Crispin().warn('this is a warning', meta: StackTrace.current.toString());
  Crispin().info('Not enabled');
  try {
    throw Exception('Error for example');
  } catch (error, stackTrace) {
    Crispin().error('Handling Error', error: error, stackTrace: stackTrace);
  }
}
1
likes
130
pub points
2%
popularity

Publisher

verified publisherdelvefore.com

Crispin Transport for Logger (https://pub.dev/packages/logger)

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crispin, flutter, logger

More

Packages that depend on logger_crispin_transport