From b825605ba7041f166e428c6d7ef5df6d1c7f9245 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Wed, 3 Jul 2024 12:03:52 +0200 Subject: [PATCH 1/3] chore: note on canister logs not collected in non-replicated mode --- spec/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/index.md b/spec/index.md index 156cd832..65ebfa2e 100644 --- a/spec/index.md +++ b/spec/index.md @@ -2563,6 +2563,7 @@ The canister logs management canister API is considered EXPERIMENTAL. Canister d ::: Given a canister ID as input, this method returns a vector of logs of that canister including its trap messages. +The canister logs are *not* collected in canister methods running in non-replicated mode (NRQ, CQ, CRy, CRt, CC, and F modes, as defined in in [Overview of imports](#system-api-imports)). The total size of all returned logs does not exceed 4KiB. If new logs are added resulting in exceeding the maximum total log size of 4KiB, the oldest logs will be removed. Logs persist across canister upgrades and they are deleted if the canister is reinstalled or uninstalled. From 41d696d8ccc1ec0a87eb353f9bd179253e2f9473 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Wed, 3 Jul 2024 12:10:36 +0200 Subject: [PATCH 2/3] typos --- spec/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.md b/spec/index.md index 65ebfa2e..c1a68c91 100644 --- a/spec/index.md +++ b/spec/index.md @@ -2563,7 +2563,7 @@ The canister logs management canister API is considered EXPERIMENTAL. Canister d ::: Given a canister ID as input, this method returns a vector of logs of that canister including its trap messages. -The canister logs are *not* collected in canister methods running in non-replicated mode (NRQ, CQ, CRy, CRt, CC, and F modes, as defined in in [Overview of imports](#system-api-imports)). +The canister logs are *not* collected in canister methods running in non-replicated mode (NRQ, CQ, CRy, CRt, CC, and F modes, as defined in [Overview of imports](#overview-of-imports)). The total size of all returned logs does not exceed 4KiB. If new logs are added resulting in exceeding the maximum total log size of 4KiB, the oldest logs will be removed. Logs persist across canister upgrades and they are deleted if the canister is reinstalled or uninstalled. From a58d3af123cb8e03d5899d452d0ce1dbec522716 Mon Sep 17 00:00:00 2001 From: Martin Raszyk Date: Wed, 3 Jul 2024 13:59:48 +0200 Subject: [PATCH 3/3] note on purging logs --- spec/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.md b/spec/index.md index c1a68c91..f5fcf516 100644 --- a/spec/index.md +++ b/spec/index.md @@ -2563,7 +2563,7 @@ The canister logs management canister API is considered EXPERIMENTAL. Canister d ::: Given a canister ID as input, this method returns a vector of logs of that canister including its trap messages. -The canister logs are *not* collected in canister methods running in non-replicated mode (NRQ, CQ, CRy, CRt, CC, and F modes, as defined in [Overview of imports](#overview-of-imports)). +The canister logs are *not* collected in canister methods running in non-replicated mode (NRQ, CQ, CRy, CRt, CC, and F modes, as defined in [Overview of imports](#overview-of-imports)) and the canister logs are *purged* when the canister is reinstalled or uninstalled. The total size of all returned logs does not exceed 4KiB. If new logs are added resulting in exceeding the maximum total log size of 4KiB, the oldest logs will be removed. Logs persist across canister upgrades and they are deleted if the canister is reinstalled or uninstalled.