Property | Type | Description | |
---|---|---|---|
$pdo | pdo object of database connection |
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 |
Method | Description | |
---|---|---|
write ( array $record ) : void | Writes the record down to the log of the implementing handler |
Method | Description | |
---|---|---|
initialize ( ) | Initializes this handler by creating the table if it not exists |
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 |