Just to point out that there was a similar discussion thread here -
Opening a file at a designated offset based on closing of the file, posted on 11th November 2003. It might be worthwhile to go through its responses.
Your solution works, provided that you never
trim,
rotate,
reset your log file. I have posted a more reliable
solution in the discussion mentioned above.