Logging
Ce contenu n’est pas encore disponible dans votre langue.
Configurable logging for your Tauri app.
Supported Platforms
- Windows
- Linux
- macOS
- iOS
Setup
This plugin requires a Rust version of at least 1.75
Install the log plugin to get started.
Use your project’s package manager to add the dependency:
-
Install the log plugin by adding the following to your
Cargo.toml
file: -
Modify
lib.rs
to initialize the plugin: -
Install the JavaScript Guest bindings using your preferred JavaScript package manager:
Usage
-
First, you need to register the plugin with Tauri.
-
Afterwards, all the plugin’s APIs are available through the JavaScript guest bindings:
Permissions
By default, all plugin commands are blocked and cannot be accessed. You must define a list of permissions in your capabilities
configuration.
See Access Control List for more information.
Permission | Description |
---|---|
log:default | Allows the log command. |
log:allow-log | Enables the log command without any pre-configured scope. |
log:deny-log | Denies the log command without any pre-configured scope. |
© 2024 Tauri Contributors. CC-BY / MIT