Skip to contents

Copyright(c) 2017-2025 R. Mark Sharp This file is part of nprcgenekeepr

Usage

logModuleEvent(module, message, level = "INFO", ...)

Arguments

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).

Value

Invisible NULL. Called for side effect of logging.

Details

Centralized logging function for Shiny module events. Provides consistent logging format across all modules with configurable log levels.

See also

safeExecute for error-safe execution with logging

Examples

if (FALSE) { # \dontrun{
logModuleEvent("modInput", "File uploaded successfully")
logModuleEvent("modPedigree", "Processing %d animals", level = "DEBUG", 100)
logModuleEvent("modGeneticValue", "Calculation failed", level = "ERROR")
} # }