This function logs a message to the SeaSondeR logging system and also informs the message to the console. It prefixes the message with the name of the calling function.
Arguments
- msg
A character string indicating the message to be logged and informed.
- log_level
A character string indicating the level of the log ("info", "error", "fatal"). Default is "info".
- calling_function
Function where the condition occurred. If NULL (default), the code determines the caller.
- ...
Additional arguments passed to
rlang::inform
(if log_level="info") orrlang::warn
(if log_level="error").