Moved common part of __iter__ impl to KdbLogHandler