log file generation