Detect if logfile is in use