Name

Log() — Logs a custom message from the dialplan

Synopsis

Log(level|message)

Sends a custom message to the logfiles from the dialplan. This application can be useful to log an exceptional condition to the logfiles, for later examination. Level may be one of the following:

DEBUG

Debugging message. This is generally not logged on a production system.

NOTICE

An informational message.

WARNING

A condition that may be serious, but is not a definite error.

ERROR

Something went terribly wrong.

See Also

NoOp(), Verbose()

Get Asterisk: The Future of Telephony, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.