Adding isOpen() method into LogFile class