logd_markdown 0.1.0 copy "logd_markdown: ^0.1.0" to clipboard
logd_markdown: ^0.1.0 copied to clipboard

Markdown (GFM) encoder and pre-wired file handler satellite package for logd.

logd_markdown #

GitHub-Flavored Markdown (GFM) encoder, formatter, and file handler satellite package for logd.

Features #

  • GitHub-Flavored Markdown: Generates structured Markdown log documents with emoji headings, alert callouts (> [!ERROR]), and syntax-highlighted code blocks.
  • Asynchronous Isolate Support: Offload Markdown serialization and file I/O to background worker isolates using MarkdownFileHandler.async().
  • Isolate Registry: Includes registerLogdMarkdownSerializers() for cross-isolate configuration transfer.

Installation #

Add logd_markdown to your pubspec.yaml:

dependencies:
  logd: ^latest_version
  logd_markdown: ^latest_version

Quick Start #

import 'package:logd/logd.dart' hide MarkdownEncoder, MarkdownFileHandler;
import 'package:logd_markdown/logd_markdown.dart';

void main() async {
  registerLogdMarkdownSerializers();

  final handler = MarkdownFileHandler.async(path: 'logs/app.md');

  Logger.configure('main', handlers: [handler]);

  final logger = Logger.get('main');
  logger.info('Application started successfully');

  await handler.dispose();
}
3
likes
160
points
66
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Markdown (GFM) encoder and pre-wired file handler satellite package for logd.

Repository (GitHub)
View/report issues
Contributing

Topics

#logging #markdown #gfm

License

BSD-3-Clause (license)

Dependencies

logd, meta

More

Packages that depend on logd_markdown