mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-24 17:20:51 +02:00
[log] add mention of cability to log plugin README.md (#2339)
This commit is contained in:
+17
-1
@@ -54,7 +54,23 @@ yarn add https://github.com/tauri-apps/tauri-plugin-log#v2
|
|||||||
|
|
||||||
## Usage
|
## 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`
|
`src-tauri/src/lib.rs`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user