Move log file checker code to new class