Log an error, warning, or info event
log_info.Rd
These are wrapper functions for log_add()
to log events of type "error", "warning", or "info".
They automatically capture arguments from the parent function and include them in the log.
Usage
log_info(
message,
name = getOption("pipfun.log.default"),
output = NULL,
.trace = NULL,
.env = parent.frame(),
logmeta = NULL
)
log_warn(
message,
name = getOption("pipfun.log.default"),
output = NULL,
.trace = NULL,
.env = parent.frame(),
logmeta = NULL
)
log_error(
message,
name = getOption("pipfun.log.default"),
output = NULL,
.trace = NULL,
.env = parent.frame(),
logmeta = NULL
)
Arguments
- message
The log message.
- name
Name of the log (default:
pipfun.log.default
).- output
Optional result or return value to include in the log.
- .trace
Optional trace object or call stack override.
- .env
Environment from which to capture arguments (default:
parent.frame()
).- logmeta
Optional named list of metadata to include (tags, user info, etc.).