Canister Logs
TODO: Write content for this page.
Debug canisters using the logging API. Cover log levels, structured logging patterns, viewing logs via icp-cli, query statistics for monitoring call patterns, and access logs. Include backtrace debugging for traps. Show examples for both Rust (ic_cdk::println!) and Motoko (Debug.print).
- Portal: building-apps/canister-management/logs.mdx, backtraces.mdx, advanced/canister-access-logs.mdx
- Examples: canister_logs (both), query_stats (both)
- guides/testing/strategies — logs as part of debugging
- guides/canister-management/lifecycle — log visibility settings
- icp-cli docs: https://dfinity.github.io/icp-cli/0.2/