- Categories:
System functions (System Information)
SYSTEM$LOG, SYSTEM$LOG_<level> (for Snowflake Scripting)¶
Logs a message at the specified severity level.
Syntax¶
Arguments¶
'level'The severity level at which to log the message. You can specify one of the following strings:
‘trace’
‘debug’
‘info’
‘warn’
‘error’
‘fatal’
messageAn expression that resolves to the message to log. If the message is not a string, the function converts the message to a string.
Examples¶
Code in the following example uses the SYSTEM$LOG function to log messages at each of the supported levels. Note that a message logged from code that processes an input row will be logged for every row processed by the handler. If the handler is executed in a large table, this can result in a large number of messages in the event table.