Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

\Phalcon\Logger\Formatter\Json::format wrong number of parameters

Please look gist, I'm developing Redis Logger with rpush, publish and pipeline. I had a problem on line 113 showing that the number of parameters of format function was wrong. Look in the comments of the gist. Any help is welcome. Thanks.

I try use only that and error keeps.

$log = new \Phalcon\Logger\Adapter\File("app/logs/test.log");
$log->setFormatter(new  Phalcon\Logger\Formatter\Json());

Hi, what version of phalcon are you using?

i think versions prior to 1.3.0 dont have 4th optional $context param in logInternal method signature


This is fixed in 1.3.2