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 Aug. 20, 2018, 9:06 a.m.