When you open such file that have different separator then comma (,) it will ask you about choose another separator.
When you write any log file just add comma to separate the filename, date, and time. This will automatically open with excel without munch efforts.