R/log.R

Defines functions log

# Placeholder for logging callbacks
log <- function(fmt, ...){
  if(!is_rapache()){
    cat(sprintf(paste0("[%s] ", fmt, "\n"), as.character(Sys.time()), ...))
    utils::flush.console()
  }
}
jeroenooms/opencpu documentation built on April 29, 2024, 6:16 a.m.