Add a feature to avoid logging too much time the same error

## Context
Sometime, the same error was logged more than 8000 times in production and completely filled the log files.

## Description
Add a feature to avoid logging too much time the same error in a session (the default behaviour is to report an error once per window of 5 minutes).