Add logging support to Tauri app
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` in `utilities/logger.ts` so that it logs either to the browser console when running in the browser or otherwise uses the Tauri logging methods (see `broker/logger.ts`) when running in Tauri?
The `enabled` flag would also need to be changed in `utilities/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.
合并状态:未合并 关闭于 2024-04-14 1 条评论