[pygcs-devel] pygcs feature request: sane log handling
Brought to you by:
jblaine
|
From: Justin S. <dw...@cc...> - 2000-07-11 16:33:45
|
I submitted this on sourceforge, but I don't know if any notification comes out of that, so I thought I'd mention it here too. 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. Thoughts? -Justin |