Skip to content

Commit cf0dff0

Browse files
authored
[log] add mention of cability to log plugin README.md (tauri-apps#2339)
1 parent 28f5c33 commit cf0dff0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

plugins/log/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,23 @@ yarn add https://github.com/tauri-apps/tauri-plugin-log#v2
5454

5555
## Usage
5656

57-
First you need to register the core plugin with Tauri:
57+
First, you should enable the `log:default` capability:
58+
59+
```json
60+
{
61+
"$schema": "../gen/schemas/desktop-schema.json",
62+
"identifier": "default",
63+
"description": "Capability for the main window",
64+
"windows": ["main"],
65+
"permissions": [
66+
"core:default",
67+
"opener:default",
68+
"log:default" # add this!
69+
]
70+
}
71+
```
72+
73+
Then, you need to register the core plugin with Tauri:
5874

5975
`src-tauri/src/lib.rs`
6076

0 commit comments

Comments
 (0)