Hi, I have too much 404 errors… I don’t want them to add up in my error log…
what is the best way to do it?
Hi, I have too much 404 errors… I don’t want them to add up in my error log…
what is the best way to do it?
Here my answer regarding to a similar topic from august: No route CHttpException
I didn’t test the code, but I will do it soon … because I hate these log-entries too
'log' => [
'class'=>'CLogRouter',
'routes' => [
[
'class' => 'CFileLogRoute',
'levels' => 'error, warning',
'except' => 'exception.CHttpException.404',
],
],
],