Closed cpsievert closed 6 years ago
Access log formats are set by the access_log_format
field
see ?loggers
for more info
WRT errors from the logger itself I have not been able to come up with a sensible approach without running the risk of creating an infinity recursion...
Ahh, ok. I still don't see any output for this example?
library(fiery)
app <- Fire$new()
app$on('request', function(server, request, ...) {
response <- request$respond()
response$status <- 200L
response$body <- paste0('<h1>This is indeed a test. You are number ', server$get_data('visits'), '</h1>')
response$type <- 'html'
})
app$access_log_format <- combined_log_format
app$ignite(showcase = TRUE)
Oh, you are correct - there are some problems with glue that should be fixed
More generally, it seems like errors/warnings from the logger itself should be reported in some way to help debug these sort of issues