Skip to contents

Send a standardized message to stdout or stderr

Usage

log_message(message, level = "INFO", out_or_err = "OUT")

Arguments

message

A string message to log

level

The level of the message (e.g. INFO, WARNING, ERROR)

out_or_err

Whether to log to stdout or stderr

Value

A message is printed to stdout or stderr

Examples

log_message("This is an info message", "INFO", "OUT")
#> [2024-11-15 19:25:37.7192] INFO: This is an info message