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

Crispin Transport for 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', stackTrace: StackTrace.current);
  Crispin().warn('this is a warning without StackTrace');
  Crispin().info('Not enabled');
  try {
    throw Exception('Error for example');
  } catch (error, stackTrace) {
    Crispin().error('Handling Error', error: error, stackTrace: stackTrace);
  }
}
1
likes
120
points
54
downloads

Publisher

verified publisherdelvefore.com

Weekly Downloads

Crispin Transport for Logger

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

crispin, logger

More

Packages that depend on logger_crispin_transport