From Sim Innovations Wiki
Jump to navigation Jump to search


value = log(message, ...)
value = log(type, message, ...)

log is used to write a message to the Air Manager or Air Player log file

Return value

This function won't return any value.


# Argument Type Description
1 type String (Optional) Can be "INFO", "WARN" or "ERROR". Default is set to be an info message.
2 .. n type Object The message to put in the log


-- Send message "Hello world" as an info message
log("Hello world")

-- Send error message "Hello world" as an error message
log("ERROR", "Hello world")

-- Send two error messages
log("ERROR", "Hello world", "Goodbye world")