mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-07-23 16:32:19 +00:00
1.3 KiB
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_basicfor terminal and JSON recordsexamples/config_buildfor parsed configurationexamples/file_rotationfor native file outputexamples/async_basicfor the async lifecycleexamples/presets,examples/text_formatter, andexamples/style_tagsfor follow-on customization
Use the API reference when a guide links to a symbol and you need its full signature or edge-case behavior.