Forum OpenACS Development: Response to aolserver-errors

Posted by David Walker on
It handles that here.  "First Run" might not be the best choice of terms for that case.<br>
If you want to be sure about the file rolling over you can store and compare the first couple of lines or the first date you locate.  Since the date is contained in each log message you can be 99.7% sure that the first few lines will change after each log rollover.

<pre>    if {![info exists lastread] || $lastread > [file size $log_file]} {
        set lastread 0
        set lastread_time "First Run"