@anush opened this Issue on August 21st 2009

The timestamp in all the log files (logger_message, logger_error, logger_exception) are currently place after the actual message. This is due to the fact the the Piwik_Log_Formatter_FileFormatter implodes the $event array and just writes it to the file without placing the 'timestamp' item ahead of others.

I propose putting the timestamp in front so that its easier for auditing/debugging purposes.

I've attached a patch file with my proposed change.
Keywords: logger

@anush commented on August 21st 2009


@mattab commented on August 21st 2009 Member

Appart from this suggestion, do you find the logging mechanism useful as such? would it need other features?

@anush commented on August 21st 2009

(I suppose I should have categorized this as a bug rather than a feature request -- my mistake)

I think the logging mechanism does what its supposed to do without the burden of additional feature overhead.

Although, one thing I can think of... the ability to specify a "debug" level might be nice to have so that a dev instance can log these while a prod instance wont.

@robocoder commented on September 11th 2009 Contributor

In [1467], fixes #944 - Timestamp in log files should appear before the message

This Issue was closed on September 11th 2009
Powered by GitHub Issue Mirror