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, echo, logfile = get_logfile())
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
.
Should the log entry (json) be echoed to stdout
as well?
A connection
, or a character string naming the file to write to.