From cf0dff049bac98c44816edfbbc3644df4cd60d8a Mon Sep 17 00:00:00 2001 From: Anthony Oleinik <48811365+antholeole@users.noreply.github.com> Date: Mon, 20 Jan 2025 12:56:13 -0800 Subject: [PATCH] [log] add mention of cability to log plugin README.md (#2339) --- plugins/log/README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/plugins/log/README.md b/plugins/log/README.md index 09369173..462bdab9 100644 --- a/plugins/log/README.md +++ b/plugins/log/README.md @@ -54,7 +54,23 @@ yarn add https://github.com/tauri-apps/tauri-plugin-log#v2 ## Usage -First you need to register the core plugin with Tauri: +First, you should enable the `log:default` capability: + +```json +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Capability for the main window", + "windows": ["main"], + "permissions": [ + "core:default", + "opener:default", + "log:default" # add this! + ] +} +``` + +Then, you need to register the core plugin with Tauri: `src-tauri/src/lib.rs`