enableConsoleInterface
Exposes the downloadLogs() function on the window object, allowing you to trigger downloads directly from the browser console.
Syntax​
enableConsoleInterface(): void
Examples​
Basic Usage​
const logger = InteractiveLogger();
logger.enableConsoleInterface();
// Then in browser console:
downloadLogs() // Triggers the download
For Debugging​
const logger = InteractiveLogger();
logger.enableConsoleInterface();
// Now you can download logs from the console without UI
// Useful for debugging in production
Notes​
- Only works in browser environments
- The function is exposed as
window.downloadLogs - Useful for debugging when you can't access the UI button
- Use disableConsoleInterface to remove the function
See Also​
- disableConsoleInterface - Remove console interface
- downloadLogs - Programmatic download method