Generate runtime logs with timestamped filenames from command line

How can we generate runtime logs with timestamped names when running from CLI? I belive the older versions installer created a log to file shortcut at the start group, but not anymore.

Will something like retroarch.exe --log-to-file=C:\RetroArch\log\retroarch_%dateformat%.cfg work? Is it possible to customize the date string format of the timestamp?