Files
2026-07-17 16:24:06 +08:00

1.3 KiB

Examples

Examples are the primary BitLogger learning path. Each page starts from an application concern, shows the complete minimum code, and then points to the API reference for exact contracts.

Choose A Flow

Need Start here Then extend with
Print structured logs to a terminal Console and fields Text formatting
Keep local logs with bounded disk use File rotation Target boundaries
Build logging from app configuration Configuration Queueing
Avoid blocking a native application on writes Async lifecycle Sink composition

Repository Examples

The runnable sources live under examples/. The guides below explain their intended use instead of duplicating every API detail:

  • examples/console_basic for terminal and JSON records
  • examples/config_build for parsed configuration
  • examples/file_rotation for native file output
  • examples/async_basic for the async lifecycle
  • examples/presets, examples/text_formatter, and examples/style_tags for follow-on customization

Use the API reference when a guide links to a symbol and you need its full signature or edge-case behavior.