Re: [pygcs-devel] pygcs feature request: sane log handling
Brought to you by:
jblaine
|
From: Jeff B. <jef...@me...> - 2000-07-12 14:32:55
|
I vote for 1, with the caveat that the suffix or prefix is YYYYMMDDHHMMSS. But yes, 2 would be more in line with standard daemons. I tend not to think of a chat server as a standard daemon I guess. > Right now, when one restarts a PyGCS server, the previous log file > is just destroyed, since the server just does an open(fn, 'w') on the > filename. > > I suggest one of the following: > > 1) When the server starts, if a file that would be overidden exists, move > it out of the way with a meaningful suffix attached. > > 2) Append to the file instead of overwriting. > > I would be more than willing to write the code for either, I just want to > see which method you prefer. My guess is choice 2, which would then > also allow someone that really wanted to to also use a 3rd party utility > to rotate the grwoing logs out of the way so that they didn't get too > enormous. |