Calculating a hash identifying the message #34

stof opened this Issue May 31, 2011 · 4 comments


None yet
2 participants

stof commented May 31, 2011

Monolog should be able to calculate a hash identifying a message. This would allows storing them in a storage when an error occur and flushing them in an handler only once instea dof having one message per request.


Seldaek commented Jul 4, 2011

This should use the IntrospectionProcessor code and crc32 the output. The message and others can't be taken into consideration because they could be input or date-sensitive.


stof commented Jul 4, 2011

There is issue with this. Think for instance to the Symfony2 ExceptionListener. All exceptions are logged at the same line, so this will not be enough to determine if this is the same mesage.


Seldaek commented Jul 4, 2011

Well, we could have another hash computation for Symfony2 that ignores the exception listener or something. But yeah I agree this could be problematic. It can wait until 1.1 anyway.

@Seldaek Seldaek added the Feature label Mar 23, 2014

@Seldaek Seldaek closed this May 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment