faasr_log: faasr_log

View source: R/faasr_log.R

faasr_logR Documentation

faasr_log

Description

Helper function to append to the log file residing in an S3 bucket the name of the S3 server is implicit from the validated JSON payload, key LoggingServer the log file is a concatenation of folder "logs" and file name "faasr_log_" + InvocationID + ".txt"

Arguments

faasr

list with parsed and validated Payload

log_message

string message to be appended to the log

Value

return nothing / leave the log to the bucket

Examples

# This function can be run only in the container
if (interactive()){
log_message <- "test message"
faasr_log(log_message)
}

FaaSr documentation built on June 22, 2024, 9:38 a.m.