Log to file with CLI option -L added