Python and/or django solution for reading log files on linux?
I would like my Django application to be able to display local syslog etc files. I would like to avoid writing the logic for managing .1
,.2
etc rotated files, and get an开发者_开发百科 object for each log that I can retrieve a set of rows from.
Is there any such python library, or even better, any such django app?
Clarification: I don't want to write messages to a log, I want to read the messages that are already there.
Python has a syslog
module. You can also use SysLogHandler
.
精彩评论