Preventing logrotate's dateext from overwriting files

dateext supports the %s format specifier - the Unix epoch time in seconds.

If you set the dateformat as .%Y-%m-%d.%s, it will look like this:

logfilename.2012-12-11.13572638495

This changes every second, so the chances of two identical files are very remote.