Skip to content

CVEDIA-RT Logs

Logging Process

When CVEDIA-RT starts, it writes all the relevant information to the Log window and log file.

Log files location

When using scripts (run.sh or CVEDIA-RT.bat) to run RT Studio, output logs are saved into the logs folder with a timestamp in the filename. Otherwise, they append to cvediart.log.

Log message types

Log messages can have different types:

- INFO : Informative messages that have no impact on application usage, can be written by the user with API functions
- DEBUG : Debug messages that have no impact on application usage
- WARN : Warning messages that may indicate a problem loading some feature and may have an impact on application usage
- ERROR : Error messages indicating a failure when loading a system feature or plugin, this feature will likely be disabled afterwards
- FATAL : A fatal event that prevents the application from continuing

Writing to Log from application script (Lua)

Its possible to manually write a message to the log during runtime from the user scripts, for this the following Lua user functions can be used:

- **api.logging.LogInfo(message)** : Write a info message to Log
- **api.logging.LogDebug(message)** : Write a debug message to Log
- **api.logging.LogWarning(message)** : Write a warning message to Log
- **api.logging.LogError(message)** : Write a error message to Log

RT Studio - Log window

Logs can also be viewed during runtime inside the application on the log window, this window can be opened by accessing the Windows Main menu option.

cvediart-log-menu

The window will show the different message types with different colors:

  • Blue for Info messages
  • Orange for Warning messages
  • Red for Fatal messages

cvediart-log-window

Logging to console

Both RT Studio (rtstudio) and RT Server (rtservice) can log to the console using the --log-console option on process startup.