Configurable logging for your Tauri app.
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:
-
First, you need to register the plugin with Tauri.
-
Afterwards, all the plugin’s APIs are available through the JavaScript guest bindings:
By default, all plugin commands are blocked and cannot be accessed. You must define a list of permissions in your capabilities
configuration.
See Permissions Overview 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