Overview of EGL Logging for RichUI Application

Logging plays a vital role in modern software development across all programming languages. It allows developers to capture key events, errors, and informational messages throughout the application's runtime. This data is crucial for monitoring system performance, diagnosing issues, and understanding the execution flow. Whether in development or production, effective logging enhances system reliability, streamlines troubleshooting, and supports long-term maintenance and auditing processes.

In the case of EGL Rich UI applications, which run in the browser, developers can leverage the browser console to output log messages using built-in JavaScript logging functions. These logs can be categorized by severity levels such as DEBUG, ERROR, INFO, TRACE and WARN for better clarity and control.

Below are the steps demonstrating logging in to the RichUI application.

  1. Create a RichUI project.
  2. Create an EGL Rich UI handler, which is a kind of Handler part.
  3. Open the handler in the EGL Rich UI editor.
  4. Open the source tab and use the logging utility (loglib).
  5. Run the RichUI application in the browser.
Note:
You can open the console to check the logs.