Modules\Core\Source\Libs\Logger\SqliteMonologHandler::__construct PHP Method

__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
    public function __construct(PDO $pdo = null, $table, $additionalFields = array(), $level = Logger::DEBUG, $bubble = true)
    {
        if (!is_null($pdo)) {
            $this->pdo = $pdo;
        }
        $this->table = $table;
        $this->additionalFields = $additionalFields;
        parent::__construct($level, $bubble);
    }