shorten log file names to 254 characters and prepend date for uniquness, fix #1791