Modified logging command to include the date in the resulting file