Logging Text Output
Last updated
Last updated
One of the simplest methods to monitor and log the state of your application is by printing text information to the standard output or standard error. For example, you can implement the following loop to continuously output an increasing integer every second:
You can then view the application standard output by visiting the Apps page of the Vehicle Web UI. Click the cog icon at the top-right corner of your application widget, and select Logs:
This will open a new panel containing the logs of your application:
Alternatively, you can use the Auterion CLI tool to view the app logs. You can list the available applications with:
Then access the desired app logs by specifying its name as done in the following command:
Use the -f
flag to follow the logs as more outputs arrive. Alternatively -a
to show all available logs.
Any write to stdout and stderr from apps is also added to the ulog file, and displayed in the suite. Here's an example:
To prevent message spamming, there is a rate limitation filter. If an application outputs too many messages at once, additional messages are dropped and a message in the form of throttle: dropping data for '<app>'