Skip to main content


ec_log — log to the paniclog


ec_log { message }


ec_log allows you to log arbitrary information to the paniclog. The log record will be prefixed with the script source filename and the line number at which the ec_log was executed. The message is logged at the CRITICAL level for the LOG1 subsystem. These messages will appear in the paniclog under the default Debug_Flags settings.

if envelope :domain :is "from" "" {
  ec_log "got mail from the good guys";


This function cannot log messages longer than 1972 characters. Longer messages are truncated. If your requirements exceed this maximum use ec_log_file instead.

Was this page helpful?