PAGI\Logger\Asterisk\Impl\AsteriskLoggerImpl

Facade to access asterisk logger (see logger.conf in your asterisk installation).

PHP Version 5

Properties

$agi

private \PAGI\Client\IClient $agi = false

Holds instance of AGI Client.

  • Visibility: private

$ident

private mixed $ident

Holds identity to prepend.

  • Visibility: private

$instance

private \PAGI\Logger\Asterisk\Impl\AsteriskLoggerImpl $instance = false

Holds current instance.

  • Visibility: private
  • This property is static.

Methods

error

void PAGI\Logger\Asterisk\IAsteriskLogger::error(string $msg)

Logs with priority ERROR.

Arguments

  • $msg string - <p>Message to log.</p>

warn

void PAGI\Logger\Asterisk\IAsteriskLogger::warn(string $msg)

Logs with priority WARNING.

Arguments

  • $msg string - <p>Message to log.</p>

notice

void PAGI\Logger\Asterisk\IAsteriskLogger::notice(string $msg)

Logs with priority NOTICE.

Arguments

  • $msg string - <p>Message to log.</p>

debug

void PAGI\Logger\Asterisk\IAsteriskLogger::debug(string $msg)

Logs with priority DEBUG.

Arguments

  • $msg string - <p>Message to log.</p>

verbose

void PAGI\Logger\Asterisk\IAsteriskLogger::verbose(string $msg)

Logs with priority VERBOSE.

Arguments

  • $msg string - <p>Message to log.</p>

dtmf

void PAGI\Logger\Asterisk\IAsteriskLogger::dtmf(string $msg)

Logs with priority DTMF.

Arguments

  • $msg string - <p>Message to log.</p>

getLogger

void PAGI\Logger\Asterisk\Impl\AsteriskLoggerImpl::getLogger(\PAGI\Client\IClient $agi)

Obtains an instance for this facade.

  • Visibility: public
  • This method is static.

Arguments

__construct

void PAGI\Logger\Asterisk\Impl\AsteriskLoggerImpl::__construct(\PAGI\Client\IClient $agi)

Constructor.

  • Visibility: protected

Arguments