log to log.txt & show on the console minimize