mvm_open_logger — Open a logger.
mvm_open_logger( : : Destination, Level : LoggerHandle)
Opens a logging service. Logging messages can be sent to HDevGUI web clients by opening a logger with Destination = 'gui'.
Level must be one of the following: 'error', 'warn', 'info', 'debug'. Only log message above this level will be output.
Destination must generally match the pattern "protocol[:specifier]". The following destination protocols are available:
'gui'
'console'
'file:FILENAME', where FILENAME specifies the full path to the destination log file.
'stdout'
Actual logging messages can be sent using with mvm_log_line or mvm_log_raw using the handle LoggerHandle returned by this operator call.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Destination (input_control) string(-array) → (string / handle)
The log messages destination. Use 'gui' to send log messages to all connected web clients.
Default value: 'gui'
List of values: 'console', 'file:C:/TEMP/mylog.txt', 'gui', 'stdout'
Level (input_control) string → (string)
logging level
Default value: 'info'
List of values: 'debug', 'error', 'info', 'warn'
LoggerHandle (output_control) lexicon → (handle)
Logger handle
mvm_log_line,
mvm_log_raw,
mvm_close_logger
Foundation