PHP Class Modules\Core\Source\Libs\Logger\SqliteMonologHandler

Inheritance: extends Monolog\Handler\AbstractProcessingHandler
Datei anzeigen Open project: andrey900/slimcms

Protected Properties

Property Type Description
$pdo pdo object of database connection

Public Methods

Method Description
__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

Protected Methods

Method Description
write ( array $record ) : void Writes the record down to the log of the implementing handler

Private Methods

Method Description
initialize ( ) Initializes this handler by creating the table if it not exists

Method Details

__construct() public method

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() protected method

Writes the record down to the log of the implementing handler
protected write ( array $record ) : void
$record array
return void

Property Details

$pdo protected_oe property

pdo object of database connection
protected $pdo