Log to a logfile
Ignore *.log *.pid and *.txt