PHP Class Phalcon\Logger\Adapter\Udplogger

Inheritance: extends Phalcon\Logger\Adapter, implements Phalcon\Logger\AdapterInterface
Datei anzeigen Open project: phalcon/incubator

Protected Properties

Property Type Description
$isTransaction boolean Flag for the transaction
$logs array Storage for holding all messages until they are ready to be sent to server.
$name string Name
$options array Adapter options
$socket resource

Public Methods

Method Description
__construct ( string $name = 'phalcon', array $options = [] ) Class constructor.
begin ( )
close ( ) : boolean
commit ( )
getFormatter ( ) : Phalcon\Logger\FormatterInterface
logInternal ( string $message, integer $type, integer $time, array $context = [] ) Writes the log.

Protected Methods

Method Description
send ( )

Method Details

__construct() public method

Class constructor.
public __construct ( string $name = 'phalcon', array $options = [] )
$name string
$options array

begin() public method

public begin ( )

close() public method

public close ( ) : boolean
return boolean

commit() public method

public commit ( )

getFormatter() public method

public getFormatter ( ) : Phalcon\Logger\FormatterInterface
return Phalcon\Logger\FormatterInterface

logInternal() public method

Writes the log.
public logInternal ( string $message, integer $type, integer $time, array $context = [] )
$message string
$type integer
$time integer
$context array

send() protected method

protected send ( )

Property Details

$isTransaction protected_oe property

Flag for the transaction
protected bool $isTransaction
return boolean

$logs protected_oe property

Storage for holding all messages until they are ready to be sent to server.
protected array $logs
return array

$name protected_oe property

Name
protected string $name
return string

$options protected_oe property

Adapter options
protected array $options
return array

$socket protected_oe property

protected resource $socket
return resource