开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜