Limit and filter logs

Drop duplicates logs.
Allow for logs to be grouped in categories, enforcing a maximum number of logs
per category.
Add the LOG_FILTER setting to ask from the configuration file to ignore some
logs (of level up to warning).