tauri-apps / tauri-apps/plugins-workspace

plugin-log:Can the plugin-log plugin enable the web interface to provide an interface for custom target attributes?

Open
#3,199 0 comments 0 reactions 0 assignees View on GitHub
type: feature request
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the problem

```
[2026-01-08][09:48:45][INFO][webview:K@tauri://localhost/assets/window-kkb_EBn9.js:3:402] create AutoReconnectWS:
0 1
[2026-01-08][09:48:45][INFO][webview:K@tauri://localhost/assets/window-kkb_EBn9.js:3:402] WebSocket connected
[2026-01-08
```
In the default print output provided, the target field is meaningless. It also consumes RPC communication resources. The `target` field I generated using the Vite plugin is superior to the default one. We expect an interface with a `disableTarget` field to be provided, or for the parameter to allow passing in a target to replace the default target.

### Describe the solution you'd like

We expect an interface with a `disableTarget` field to be provided, or for the parameter to allow passing in a target to replace the default target.

### Alternatives considered

I tried filtering WebView logs at the Rust layer and removing the target, but this approach is far from elegant. It wastes performance and transmits extra meaningless fields, making it far less efficient than simply removing them directly on the web side.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.