-
Notifications
You must be signed in to change notification settings - Fork 825
Open
Description
Feature Request
This may already exist, but I could not find any documentation or examples on it, but please feel free to point me in the right direction if I'm wrong.
Crates
N/A
Motivation
I've been working with wasm a lot lately, specifically using the wasmer
and wasmer-wasi
. I have a use case where the logging function is written from the rust side. Then that function is called on the wasm side. This results in always saying the file and line are from the rust side. I'd love to be able to overwrite the level and line easily just by passing it to a macro.
Proposal
Something like tracing::debug!(message, line = 32, file = "wasm_bins/foo/main.rs")
would be great.
Alternatives
I'm not super familiar with the internals of tracing; there may be better ways to do this.
jrobsonchase, Nedra1998 and vladislav-tkach
Metadata
Metadata
Assignees
Labels
No labels