xsoulspace_logger_io 1.0.0-beta.0 copy "xsoulspace_logger_io: ^1.0.0-beta.0" to clipboard
xsoulspace_logger_io: ^1.0.0-beta.0 copied to clipboard

Durable dart:io sink for xsoulspace_logger with NDJSON segments, crash recovery, retention, and rotation.

example/main.dart

import 'dart:io';

import 'package:xsoulspace_logger/xsoulspace_logger.dart';
import 'package:xsoulspace_logger_io/xsoulspace_logger_io.dart';

Future<void> main() async {
  final sink = IoLogSink(
    IoLogSinkConfig(
      directoryPath: '${Directory.systemTemp.path}/logger_example',
    ),
  );

  final logger = Logger(const LoggerConfig(), <LogSink>[sink]);
  logger.info('example', 'Persisted to NDJSON segment files');

  await logger.flush();
  await logger.dispose();
}
0
likes
150
points
7
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Durable dart:io sink for xsoulspace_logger with NDJSON segments, crash recovery, retention, and rotation.

Homepage
Repository (GitHub)
View/report issues

Topics

#logging #observability #dart #io #ndjson

License

MIT (license)

Dependencies

xsoulspace_logger

More

Packages that depend on xsoulspace_logger_io