[Zope-Coders] new zLOG

Shane Hathaway shane@zope.com
Tue, 26 Nov 2002 15:03:55 -0500


Ken Manheimer wrote:
> On Tue, 26 Nov 2002, Casey Duncan wrote:
> 
> 
>>This probably qualifies as a "DUH" question, but why can't you just specify 
>>the uid to the logger when it is initialized (trick question, eh?). If you 
>>are running as root it will just do a chown on the file to the uid
>>specified.
> 
> 
> This may be assumed, but i think only root can change the ownership of
> a file (not sure, but 'man fchown' seems to confirm), so such a zLog
> option would only be usable when the logger is called by a
> root/privileged process.  Maybe that's ok, but it could be confusing
> as part of the interface for the logger - maybe suggesting that the
> functionality belongs elsewhere.

while true; do chown zope event.log; sleep 1; done &

(ducks) :-)

Shane