log

log(level, message, category="default")

Log a message in the logging queue. It is often difficult to see output

of a trigger unless you are running the server in debug mode. In

production mode, the server sends the output to log files which

are general buffered, so it cannot be predicted exactly when

this output will be dumped to a file.

This method will make a request to the server and store the message

in the database in the debug log table.

param:

level - debug level

message - freeform string describing the entry

keyparam:

category - a label for the type of message being logged.

It defaults to "default"