Learn R Programming

loggit2 (version 2.3.1)

loggit_internal: Internal logging function

Description

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.

Usage

loggit_internal(log_lvl, log_msg, echo, logfile = get_logfile())

Value

Invisible NULL.

Arguments

log_lvl

Log level. A atomic vector of length one (usually character). Will be coerced to character.

log_msg

Log message. A atomic vector of length one (usually character). Will be coerced to character.

echo

Should the log entry (json) be echoed to stdout as well?

logfile

A connection, or a character string naming the file to write to.