Hi everyone,
I'm trying to create a logger that covers two outputs. The first one is
a database (so every stuff should go there). And now I try to add an
appender that sends every log-event with an level higher 'warn'.
But I really don't get it working?! I'm doing the following code (PHP):
Logger::configure(
array(
'appenders' =3D> array(
'default' =3D> array(
'class' =3D> 'LoggerAppenderPDO',
'params' =3D> array(
'dsn' =3D> =
'mysql:host=3D'.$logHost.';port=3D'.$logPort.';dbname=3D'.$logName,
'user' =3D> $logUser,
'password' =3D> $logPass,
'table' =3D> 'log4php_log',
),
'default' =3D> array(
'class' =3D> 'LoggerAppenderMailEvent',
'layout' =3D> array(
'class' =3D> 'LoggerLayoutSimple',
),
'params' =3D> array(
'to' =3D> '[email protected]',
'from' =3D> '[email protected]'
),
'filters' =3D> array(
array(
'class' =3D> 'LoggerFilterLevelRange',
'params' =3D> array(
'levelMin' =3D> 'warn',
'levelMax' =3D> 'error',
)
)
)
),
=20
),
),
'rootLogger' =3D> array(
'appenders' =3D> array('default'),
),
)
);
Can anyone advise me how to do that?
Best regards,
Jan Galler