You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Phalcon\Logger\Exception: The formatted message is not valid in phalcon/Logger/Adapter/Syslog.zep:107
Stack trace:
#0 [internal function]: Phalcon\Logger\Adapter\Syslog->process(Object(Phalcon\Logger\Item))
#1 [internal function]: Phalcon\Logger->addMessage(5, 'Notice message', Array)
#2 /srv/public/log_test.php(12): Phalcon\Logger->log(5, 'Notice message')
#3 {main}
thrown in phalcon/Logger/Adapter/Syslog.zep on line 107
Example 2:
// Try to pass as array, according example - https://docs.phalcon.io/4.0/en/logger#interpolation$logger->log(Logger::NOTICE, [
'type' => 'notice',
'message' => 'Notice message',
]);
Produce error:
Array to string conversion
PHP message: PHP Fatal error: Uncaught Phalcon\Logger\Exception: The formatted message is not valid in phalcon/Logger/Adapter/Syslog.zep:107
Stack trace:
#0 [internal function]: Phalcon\Logger\Adapter\Syslog->process(Object(Phalcon\Logger\Item))
#1 [internal function]: Phalcon\Logger->addMessage(5, 'Array', Array)
#2 /srv/public/log_test.php(13): Phalcon\Logger->log(5, Array)
#3 {main}
thrown in phalcon/Logger/Adapter/Syslog.zep on line 107
Expected behavior
Log message into stderr without any fatal errors.
Details
Phalcon version: 4.0.0-rc.2
PHP Version: 7.2.19
Operating System: Ubuntu 18
Installation type: Compiling from source
Server: Nginx
The text was updated successfully, but these errors were encountered:
Describe the bug
Impossible to pass log message as string, nor as array with
Logger->log()
method.To Reproduce
Steps to reproduce the behavior:
Example 1:
Produce error:
Example 2:
Produce error:
Expected behavior
Log message into stderr without any fatal errors.
Details
4.0.0-rc.2
7.2.19
The text was updated successfully, but these errors were encountered: