How to log to console with android #13607
-
I've searched but I can't find any help on this anywhere. I've read through the docs and still no luck. I'm running my app in an emulator and trying to log to the console and getting no output. lib.rs: #[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(
tauri_plugin_sql::Builder::new()
.add_migrations("sqlite:data.db", migrations())
.build(),
)
.plugin(tauri_plugin_log::Builder::new().build())
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_blec::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
} In my sveltekit frontend: <script lang="ts">
import { trace } from "@tauri-apps/plugin-log";
import { onMount } from "svelte";
onMount(() => {
trace("onMount");
});
</script> This prints nothing to the terminal. This is all I see:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Maybe I'm expecting to see these logs in the wrong spot. Using
But I don't see a good way to filter |
Beta Was this translation helpful? Give feedback.
-
Am I misunderstanding or why is Chrome DevTools not an option? |
Beta Was this translation helpful? Give feedback.
Am I misunderstanding or why is Chrome DevTools not an option?