Hi guys I'm new here and this is my first post. I have a project with log4php and I can't make a persistent connection happen.
Is it possible to establish a persistent connection (pconnect) with the LoggerAppenderPDO through the configuration in log4php? Is it possible at all?
I've tried to add 'options' to the following configuration, but it doesn't work:
array(
'appenders' => array(
'default' => array(
'class' => 'LoggerAppenderPDO',
'params' => array(
'dsn' => "mysql:host=localhost;dbname=logdb",
'user' => 'logger',
'password' => 'admin',
'options' => array(PDO::ATTR_PERSISTENT => true),
'table' => 'log4php'
)
)
),
'rootLogger' => array(
'appenders' => array('default'),
),
);
Can somebody help me out? I would really appreciate it.