Timestamp in log files should appear before the message #944
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
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
The text was updated successfully, but these errors were encountered: