structured_logger 0.1.2 copy "structured_logger: ^0.1.2" to clipboard
structured_logger: ^0.1.2 copied to clipboard

Another logging package, but for structured logging, with the concept of sinks for log output

example/lib/main.dart

import 'package:flutter/widgets.dart';
import 'package:structured_logger/structured_logger.dart';

/// Minimal example: log to the console and the Dart developer log.
Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  final logger = StructureLogger();
  logger.addSink(SimpleLineSink());
  logger.addSink(DefaultSink());

  await logger.log(
    'Welcome {name}, your level is {level}',
    level: LogLevel.info,
    data: {'name': 'John Doe', 'level': 12},
  );
}
0
likes
160
points
14
downloads

Documentation

API reference

Publisher

verified publisheraltamir.dev

Weekly Downloads

Another logging package, but for structured logging, with the concept of sinks for log output

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on structured_logger