|
|
|
|
Functions
Events
MioScript Reference
|
|
Syntax
Parameters
| STRING | typeOrText | Type of entry. Can a 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) when 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 system.logIsEnabled returns true if 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.
The path to the log file can be retrieved with path.log.
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 JavaScript with the function log.
Note: This function is defined in the library klib.k and is linked automatically. |
MioScript 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.") |
|
|
|