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()
  }
}
jeroen/opencpu documentation built on Oct. 11, 2024, 9:31 a.m.