View source: R/logModuleEvent.R
| logModuleEvent | R Documentation |
Centralized logging function for Shiny module events. Provides consistent logging format across all modules with configurable log levels.
logModuleEvent(module, message, level = "INFO", ...)
module |
character. Name of the module generating the log message. |
message |
character. The log message to record. |
level |
character. Log level: "DEBUG", "INFO", "WARN", or "ERROR". Defaults to "INFO". |
... |
Additional arguments passed to the log message (for sprintf-style formatting). |
Invisible NULL. Called for side effect of logging.
safeExecute for error-safe execution with logging
logModuleEvent("modInput", "File uploaded successfully")
logModuleEvent("modPedigree", "Processing %d animals", level = "DEBUG", 100)
logModuleEvent("modGeneticValue", "Calculation failed", level = "ERROR")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.