Wednesday 13 May 2015

Including the date in a log file name

It is often useful for data management purposes to include the run date in the name of a log file. One of the minor tweaks with the latest release of SeqSuite is the ability to do that automatically from the commandline (or ini file) without having to change the command. Simply include #DATE in the log=FILE command. e.g.:

log=mylog.#DATE.log

If run today, for example, the log file generated would be mylog.2015-05-13.log. As well as helping record keeping, this is also a good way of having different log files for different runs whilst still using a single log=FILE command in an ini file.

No comments:

Post a Comment