Log improved to support the input file name logging