Module log

Custom logger for sequences.

This module provides custom logging functionality for sequences. It can be used to log data somewhere from within a sequence.

Info:

  • Copyright: 2011-2015 Chad Phillips
  • Author: Chad Phillips

Actions

log Log a custom message.

Handlers

console The console handler (default).
file The file handler.


Actions

log
Log a custom message.

Allows logging a message from within a sequence, with a custom level.

  • action string log
  • file string (Optional) Required only for handlers that log to a file. Provide a full path to the file. Default is '/tmp/jester.log'.
  • level string (Optional) The log level of the message. This value will vary depending on the handler, see handlers. Default is 'info'.
  • message string The message to log.
  • handler string The handler to use, see handlers. If not specified, defaults to the default handler for the module.

Usage:

    {
      action = "log",
      file = "/tmp/jester.log",
      level = "info",
      message = "A custom log message",
      handler = "file",
    }

Handlers

console
The console handler (default).

Logs to the FreeSWITCH console.

When using this handler, the 'level' argument for the action can be any valid level used by freeswitch.consoleLog

Usage:

    {
      action = "log",
      handler = "console",
      level = "info",
      -- other params...
    }
file
The file handler.

Logs to a file on the local filesystem.

When using this handler, the 'level' argument for the action can be any arbitrary value the user decides.

Usage:

    {
      action = "log",
      handler = "file",
      level = "WARN",
      -- other params...
    }
generated by LDoc 1.4.6 Last updated 2018-11-07 21:33:15