ZF-10427: Zend_Log_Formatter_Simple must print extra info event

Issue Type: Bug Created: 2010-09-07T10:43:52.000+0000 Last Updated: 2012-11-20T21:38:06.000+0000 Status: Open Fix version(s): Reporter: BenoƮt Durand (intiilapa) Assignee: None Tags: - Zend_Log

Related issues: Attachments: - SimpleTest.php.patch


I wrote a unit test that is showing that the default format of the formatter does not include the info log event. The log resource does not configure the formatter writer currently.

In the error controller, the message to log is only 'Application error', and the stack trace is the extra information. The default behavior does not log the message and the stack trace of the exception. But it is the most important information to report!

<pre class="highlight">
// Actual
const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message%';

// Expected
const DEFAULT_FORMAT = '%timestamp% %priorityName% (%priority%): %message% -- %info%';

Maybe a newline instead of the separator '--'. We should let the possibility to filter the text of message.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.