Honestly guys, I don't think this is something worth optimizing. Unless someone is rotating their logs very very frequently (OTOO several times a second, which would be silly), there's no way creating a date formatter object each time will have any significant performance impact.