Repository navigation
How to log in an SWC plugin ? #350
Edmondo Porcu (edmondop)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am building an SWC plugin compatible with NextJS 14.2.2 using tracing as recommended in the docs and adopting the version of SWC crates compatible for NextJS 14.2.2.
My SWC plugin is correctly started (if I panic/exit I could see the error log in the NextJS console) however all calls to
tracing::info!macro are swallowed. I tried both to launchRUST_LOG=debug next devand to specify the env variable in mynext.config.jslike so:Should I add a dependency to tracing-subscriber? I checked the existing plugins and none of them has this explicit dependency/sets up the subscriber
All reactions