I assume that the application should create only one log file every time it runs, so you do not need a rolling file appender (though my solution would apply for rolling file appenders as well):
(Obviously you can use other your own layout and other settings for the file appender.)