Add -l option

-l will let our program to write log files, default is no log.