PHP Класс Modules\Core\Source\Libs\Logger\SqliteMonologHandler

Наследование: extends Monolog\Handler\AbstractProcessingHandler
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$pdo pdo object of database connection

Открытые методы

Метод Описание
__construct ( PDO $pdo = null, boolean $table, array $additionalFields = [], boolean | integer $level = Logger::DEBUG, boolean $bubble = true ) Constructor of this class, sets the PDO and calls parent constructor

Защищенные методы

Метод Описание
write ( array $record ) : void Writes the record down to the log of the implementing handler

Приватные методы

Метод Описание
initialize ( ) Initializes this handler by creating the table if it not exists

Описание методов

__construct() публичный метод

Constructor of this class, sets the PDO and calls parent constructor
public __construct ( PDO $pdo = null, boolean $table, array $additionalFields = [], boolean | integer $level = Logger::DEBUG, boolean $bubble = true )
$pdo PDO PDO Connector for the database
$table boolean Table in the database to store the logs in
$additionalFields array Additional Context Parameters to store in database
$level boolean | integer Debug level which this handler should store
$bubble boolean

write() защищенный метод

Writes the record down to the log of the implementing handler
protected write ( array $record ) : void
$record array
Результат void

Описание свойств

$pdo защищенное свойство

pdo object of database connection
protected $pdo