Ideally, you should not delete log files. Instead, copy them to another location, and clear the log file. However, if you accidentally deleted a log file on running system (only possible for Unix system since Windows does not allow the user to delete currently used files), there are two ways to recreate the log file: