Instead of mixing string concatenation and format strings can you do `{0}.{1}.log`?