Refactoring
Implement hook_watchdog()

No severity check yet
Minor refactor