Not using provided FormatEvent #13
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Seeking feedback
I have an issue with your library because the logs are reported using a
Layer
which bypasses theFormatEvent
oftracing_subscriber
.In my use case I have made my own FormatEvent which I use in place of the default one provided by tracing-subscriber. This allows me to customize the log lines.
🤔 I don't know if I have a solution for this...
FormatEvent
is using aWriter
to write the log lines (which is provided by the user). Maybe it would be possible to spawn a task that would read the log lines from aReader
and call thelog()
function from there but logging in the browser console is kinda complicated because there are log arguments to change the colors and stuff... I would probably need to serialize things.The text was updated successfully, but these errors were encountered: