Refactored ErrorLogHandler to use constantes for types

- Create tests for ErrorLogHandler;
- Remove types 1, 2 and 3 in favor of specific handlers.
Merge pull request #216 from henriquemoody/error_log-tests

Refactored ErrorLogHandler to use constantes for types