[log] add mention of cability to log plugin README.md (#2339)

pull/2337/head
Anthony Oleinik 4 months ago committed by GitHub
parent 28f5c33d65
commit cf0dff049b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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`

Loading…
Cancel
Save