Implement %M datestamping in log filenames.