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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.