Adding log file with debug