Skip to contents

This is suitable to be used with wrapped_factory to imbue another function with logger functionality.

Usage

wrapped_with_logger(cmd, args, level = NULL)

Arguments

cmd

a cli function, e.g., cli::cli_alert

args

the args to be passed to the cmd via do.call

level

the logger level to be associated with the cli method