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-06-26 11:53:54.6119] INFO: This is an info message
log_message("This is an error message", "ERROR", "ERR")
#> [2025-06-26 11:53:54.6130] ERROR: This is an error message
log_message("This is a warning message", "WARNING", "OUT")
#> [2025-06-26 11:53:54.6141] WARNING: This is a warning message