Log Forwarding
Capture and forward logs from your Tauri application to WebDriverIO's logger system.
Overview
The Tauri service can capture and forward logs from both the Rust backend and frontend console to WebDriverIO's logger system. This allows you to see Tauri application logs seamlessly integrated with your test output.
Enabling Log Forwarding
Log forwarding is disabled by default. Enable it via service options:
// wdio.conf.ts
export const config = {
services: [
['@wdio/tauri-service', {
// Enable backend log capture (Rust logs from stdout)
captureBackendLogs: true,
// Enable frontend log capture (console logs from webview)
captureFrontendLogs: true,
// Minimum log level for backend logs (default: 'info')
backendLogLevel: 'info',
// Minimum log level for frontend logs (default: 'info')
frontendLogLevel: 'info',
}],
],
capabilities: [
{
browserName: 'tauri',
'tauri:options': {
application: './path/to/app',
},
},
],
};