Closed nesium closed 2 months ago
Thanks Marc, I've added forwarding of the frontend/JS logger output to the Tauri backend as you've requested. The logs will not be printed in the browser console for Tauri builds.
Also, made some improvements so that we don't output TRACE logs coming from Tauri internals in eg. production builds.
Hey @valeriansaliou.
I have changed logging in the core so that it now calls a class that implements
ProseLogger
instead of writing directly to the console.Could you change the
logger
inutilities/logger.ts
so that it logs either to the browser console when running in the browser or otherwise uses the Tauri logging methods (seebroker/logger.ts
) when running in Tauri?The
enabled
flag would also need to be changed inutilities/logger.ts
when running in Tauri.Anyways, when you now run the app logs are written to
~/Library/Logs/org.prose.app-web/Prose.log
, so that should simplify things a bit in production.