You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: spec/index.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2617,7 +2617,12 @@ The canister logs are *not* collected in canister methods running in non-replica
2617
2617
The total size of all returned logs does not exceed 4KiB.
2618
2618
If new logs are added resulting in exceeding the maximum total log size of 4KiB, the oldest logs will be removed.
2619
2619
Logs persist across canister upgrades and they are deleted if the canister is reinstalled or uninstalled.
2620
-
The log visibility is defined in the `log_visibility` field of `canister_settings`: logs can be either public (visible to everyone) or only visible to the canister's controllers (by default).
2620
+
2621
+
The log visibility is defined in the `log_visibility` field of `canister_settings` and can be one of the following variants:
2622
+
2623
+
-`controllers`: only the canister's controllers can fetch logs (default);
2624
+
-`public`: everyone can fetch logs;
2625
+
-`allowed_viewers` (`vec principal`): only principals in the provided list and the canister's controllers can fetch logs, the maximum length of the list is 10.
2621
2626
2622
2627
A single log is a record with the following fields:
0 commit comments