Added logging for scope type and fixed log file name