Skip to content

[log] target not very useful in javascript logsΒ #1455

@harrismcc

Description

@harrismcc

When using tauri-plugin-log, the target is not really accurate for javascript logs. It seems to always just result in the actual function in tauri-plugin-log that generates the log, not the place where I called the log function.

For example, using info("this is a test info log") in my javascript code will result in a log line like: [2024-06-11][18:22:35][INFO][log@http://localhost:1420/node_modules/.vite/deps/tauri-plugin-log-api.js:70:20] this is a test info log

Is there a way around this? Is there some configuration I'm missing on the javascript side of things (the rust locations seem to work)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions