I think what you are looking for is this;
That post shows how to make a rolling log file. Always showing the latest at the top.