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
Copy file name to clipboardExpand all lines: docs/kit/logs.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,9 @@ context.logs.clear()
163
163
164
164
Logs have a maximum capacity of 1000 entries. When the limit is reached, the oldest entries are automatically removed.
165
165
166
+
> [!TIP]
167
+
> See the [A11y Checker example](/kit/examples#a11y-checker) for a plugin that uses logs to report accessibility violations with severity levels, element positions, and WCAG labels.
168
+
166
169
## Dock Badge
167
170
168
171
The Logs dock icon automatically shows a badge with the total log count. The icon is hidden when there are no logs.
> See the [File Explorer example](/kit/examples#file-explorer) for a plugin using RPC functions with dump support, organized following the conventions above.
320
+
318
321
## Schema Validation (Optional)
319
322
320
323
The RPC system has built-in support for runtime schema validation using [Valibot](https://valibot.dev). When you provide schemas, TypeScript types are automatically inferred and validation happens at runtime.
0 commit comments