Text with HTML support, or one of the following values: EMPTY: Empty line. INFO: Text to be displayed one time and replaced by the next entry. ERROR: Shows an error, in red. WARNING: Shows a warning. TITLE: Title, to make the log easier to read. SUBTITLE: Sub-title.
STRING
text
Optional. Text to be added in the log file. .HTML is supported.
Return value
No value is returned.
Description
Adds an entry in the log file (log.htm) if log is enabled.
Log can be enabled or disabled from MioFactory, and the log file can be viewed from MioFactory or with any web browser.
The function logIsEnabled returns true when log is enabled.
If the application is installed on the computer, the log file is saved in the application install folder with the name.
Otherwise, the log file is created in a temporary folder.
Warning: Do not enable the log except if your application is being tested for bug tracking.
The log uses CPU and the application runs slower.
The log file can be updated from MioScript with log.
JavaScript Sample Code
log("TITLE", "Hello, World")
log("SUBTITLE", "Hello, World")
log("ERROR", "This is an error")
log("EMPTY") // Blank line
log("INFO", "Text erased when a new entry is added in the log.")
log("This is a text to be added in the log.")