Phalcon\Logger\Adapter\Firelogger::commit PHP Method

commit() public method

{@inheritdoc} Encodes all collected messages into HTTP headers. This method is registered as a shutdown handler, so transactions will get committed even if you forget to commit them yourself.
public commit ( )
    public function commit()
    {
        if (!$this->isTransaction || empty($this->logs)) {
            $this->isTransaction = false;
            return;
        }
        $this->flush();
        $this->isTransaction = false;
    }