log_message()
does not stop the execution of the script, regardless of
the level of the message, and whether or not it prints to STDOUT or STDERR.
Value
A message printed to stdout or stderr and an invisible character string copy of the entire log message.
See also
Other log:
log_error()
,
log_total_time()
,
survey_log()
Examples
log_message("This is an info message", "INFO", "OUT")
#> [2025-02-03 21:45:57.7879] INFO: This is an info message
log_message("This is an error message", "ERROR", "ERR")
#> [2025-02-03 21:45:57.7888] ERROR: This is an error message
log_message("This is a warning message", "WARNING", "OUT")
#> [2025-02-03 21:45:57.7898] WARNING: This is a warning message