开发者

Python and/or django solution for reading log files on linux?

开发者 https://www.devze.com 2023-01-09 01:33 出处:网络
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

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

精彩评论

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

关注公众号