CoAkka Logger
CoAkka Logger reference
Use this guide to understand a record, choose a destination, set limits or diagnose missing logs. Package APIs are shown in Study.
CoAkka Logger
Use this guide to understand a record, choose a destination, set limits or diagnose missing logs. Package APIs are shown in Study.
TRACE/DEBUG for diagnostics,
INFO for normal milestones, WARN for
recoverable problems and ERROR/FATAL for
failures by severity. The level does not stop the application.
orders.checkout. Keep names stable. Put an order ID in
the message if the application is allowed to record it.
Think of an order counter. Taking a ticket means the order is in the queue. Picking up the ticket means someone is working on it. Saving the completed receipt takes another step. An accepted log, a dequeued log and a saved log are separate outcomes in the same way.
In manual drain, the application reads records and decides whether to display them, write them or forward them. A read can return no record within its wait time. For a busy server, keep blocking reads and slow output off the request path and give downstream buffers their own limits.
With a managed sink, Logger reads the queue and writes to a configured local file, console, or both, where the package exposes those options. Use sink counters and inspect the destination to confirm writes. Plan permissions, storage limits and retention. For a remote collector or an audit record that must survive a crash, choose an output path with the required acknowledgement and durability guarantees.
systemName /
system_name
orders-service. Use application correlation IDs to
connect logs across services.
minLevel /
min_level
queueCapacity /
queue_capacity
categoryCapacity /
messageCapacity
sink_mode and, for a file,
output_path. max_file_size_bytes governs
rotation of the active file,
max_total_size_bytes limits space for managed files,
and max_archived_files limits archive count. Check
effective configuration where exposed and choose limits that match
the deployment.
Try a queue of 2 with 8 enabled writes and no reads until the writes finish. This exercise admits 2 records and refuses 6. Then read the 2 accepted records. The example makes the result repeatable; production values depend on traffic and output speed.
queueCapacity / queueDepth /
queueHighWatermark
emittedCount / deliveredCount
emitted_count.
droppedCount
| Symptom | Check and act |
|---|---|
| Package fails to load or start | Check the installed coordinate and version, runtime, OS/CPU, and the native library selected. For managed file output, check the directory and write permissions. |
| Only lower-level logs are missing | Check the effective level and category filter. A disabled call can finish without admission and may be skipped before counting. |
| Write is refused | Read the typed result. Check depth and high-water mark for queue-full. For an oversized record, shorten or summarize the message and check its encoded size. |
| Read times out | Check whether the write was accepted, whether a different consumer already read it and whether the instance is open. A read wait does not cancel an accepted record. |
| Queue empties, but file or collector is missing data | Check sink failures, destination permissions, available storage and downstream acknowledgement. A dequeued counter alone does not confirm a write. |
| Shutdown takes longer than expected | Confirm that producers have stopped. Check the pending queue and the latency of the destination or the application’s consumer before changing limits. |
Record the exact package from the project or lock file, for example
[email protected] or Maven
io.github.phuong-tran.coakka:logger:1.2.2. The bundled
Logger Core reports 1.2.1; native packages in these
exercises use C ABI 10. These numbers describe Logger and
are independent of the versions of the two Runtime products.
When reporting a load issue, include the installed package version, the Logger info snapshot (Core version and ABI where exposed), runtime version and OS/CPU. The source label can be unavailable on a packaged host. Use the matching artifact manifest and digest to confirm identity.
These are Portal lab checks. For deployment, verify the chosen package, operating system, CPU and language runtime in its manifest.
| Environment | Labs checked |
|---|---|
| macOS ARM64 | Go, Node.js, Bun, Python, Java and Kotlin (Maven and Gradle), .NET, Swift, C/C++, Rust, Zig, Mojo and the Electron desktop window. |
| Raspberry Pi 5 · Linux ARM64 | Python, Bun, C and C++. The native file lab confirmed the counter and the contents of the file. |
| Tauri · macOS ARM64 | The packaged Rust example. WebView and desktop packaging require separate validation. |
| Task | What to do |
|---|---|
| Start | Choose a package, start one instance, read its configuration where available. |
| Write | Give a level, category and message; check the sequence or refusal. |
| Read | Choose a bounded wait or poll. Compare the record and decide where it goes. |
| Monitor | Watch queue depth, drops and sink failures. Compare rates over the same interval. |
| Close | Stop producers, finish reading or writing required records, close the owner. |