faasr_log {FaaSr}R 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)
}

[Package FaaSr version 1.2.1 Index]