Creating Read-only logs with python

Posted by Travis on Stack Overflow See other posts from Stack Overflow or by Travis
Published on 2010-03-25T21:56:59Z Indexed on 2010/03/25 22:13 UTC
Read the original article Hit count: 421

Filed under:
|
|
|

I am writing a python script that needs to make a log entry whenever it's invoked. The log created by the script must not be changeable by the user (except root) who invoked the script. I tried the syslog module and while this does exactly what I want in terms of file permissions, I need to be able to put the resulting log file in an arbitrary location. How would I go about doing this?

© Stack Overflow or respective owner

Related posts about python

Related posts about linux