This function is used internally by the loggit
function to log messages and levels.
No checks are performed on the input, so it should used with caution.
loggit_internal(
log_lvl,
log_msg,
log_call = NULL,
echo = get_echo(),
logfile = get_logfile(),
call_options = get_call_options()
)
Invisible NULL
.
Log level. A atomic vector of length one (usually character
). Will be coerced to character
.
Log message. A atomic vector of length one (usually character
). Will be coerced to character
.
Call object to log as call leading to the log message.
Should the log entry (json) be echoed to stdout
as well?
A connection
, or a character string naming the file to write to.
List of options regarding logging of call objects. As set by set_call_options()
.