Builtin Lua functions
nauthilus_builtin.status_message_set
If a client request should be rejected, you can overwrite the returned status message with the following function:
nauthilus_builtin.status_message_set("Reject message here")
nauthilu_builtin.custom_log_add
This function adds key-value pairs to the result log. In case of *features, backend and filters, the logs are all added to the final result log line. In cases of actions, logging is appended to the action log line. The reason is simple: Actions may run asynchronous to the main request, which might already have been closed.
You cann call this function as many times as you like. Even with same key-value pairs.
note
Logs can not be removed if once set!
nauthilus_builtin.custom_log_add("key", value)
A value can be a string, number or boolean. Anything else is replaced as "UNSUPPORTED".