NicolaSpadari / nuxtor

Build tiny desktop apps with Tauri, Nuxt 3 and UnoCSS
MIT License
196 stars 2 forks source link

How can I see the logs? #2

Closed ok-oldking closed 1 month ago

ok-oldking commented 1 month ago

I'm new to tauri and nuxt. I can't get the log working either by console.log or using the "@tauri-apps/plugin-log"

import { trace, info, error, attachConsole } from "@tauri-apps/plugin-log";
info(`currentPlatform {currentPlatform}`);
info!("Razor located: 1111");
console.log('22222222222');
NicolaSpadari commented 1 month ago

Hello, you shouldn't need the plugin for logging info, as you can see I just added a random console log and I see it correctly

Screenshot 2024-09-02 at 09 23 55

Please keep in mind that logging is available during development and in debug build, not in the compiled final application

ok-oldking commented 1 month ago

Thank you for the reply, I didn't know about the developer console, I was looking in the termimal