Learn how to monitor and debug your AskUI automation workflows
AskUI provides powerful reporting and logging capabilities to help you monitor and debug your automation workflows. This guide covers how to use these features effectively.For detailed API documentation on reporting capabilities, see the Reporting API Reference.
Enable detailed logging to better understand what your agent is doing during execution. This is particularly useful for debugging and monitoring automation workflows.
import loggingfrom askui import VisionAgent# Set log level to DEBUG for detailed outputwith VisionAgent(log_level=logging.DEBUG) as agent: agent.click("Login button") agent.type("myuser@example.com")
You can use multiple reporters simultaneously. Their methods will be called in the order they are listed:
Copy
Ask AI
from askui import VisionAgentfrom askui.reporting import SimpleHtmlReporterwith VisionAgent(reporters=[ SimpleHtmlReporter(), # First reporter CustomReporter() # Second reporter]) as agent: agent.click("Login button")
By implementing these logging and reporting features, you’ll have better visibility into your automation workflows and be able to debug issues more effectively.