Implemented logging for error level