Detect if logfile is used