logger_crispin_transport 1.0.0 logger_crispin_transport: ^1.0.0 copied to clipboard
Crispin Transport for Logger (https://pub.dev/packages/logger)
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);
}
}