View source: R/seasonder_log.R
seasonder_logAndMessage | R Documentation |
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.
seasonder_logAndMessage(msg, log_level = "info", calling_function = NULL, ...)
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 |
Invisibly returns no value; used solely for its side effects of logging and messaging.
my_function <- function() {
seasonder_logAndMessage("This is a message", "info")
}
my_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.