【文件属性】:
文件名称:systemd-logging:简化systemd的日志记录
文件大小:19KB
文件格式:ZIP
更新时间:2021-05-26 02:23:51
python systemd logging python3 Python
系统日志
描述
简化systemd的日志记录
需要Python 3.6+
无需编译(纯Python),使用libsystemd.so 。
简化的配置。
只是记录。 而已。
用法
import logging
from systemdlogging . toolbox import init_systemd_logging
# This one line in most cases would be enough.
# By default it attaches systemd logging handler to a root Python logger.
init_systemd_logging () # Returns True if initialization went fine.
# Now you can use logging as usual.
logger =
【文件预览】:
systemd-logging-master
----MANIFEST.in(280B)
----README.rst(2KB)
----CONTRIBUTING(685B)
----AUTHORS(195B)
----INSTALL(499B)
----demo()
--------simple.py(1KB)
----systemdlogging()
--------toolbox.py(5KB)
--------__init__.py(145B)
--------backend_ctyped.py(177B)
----.travis.yml(235B)
----tox.ini(245B)
----LICENSE(1KB)
----setup.cfg(96B)
----setup.py(2KB)
----docs()
--------source()
--------build()
--------Makefile(5KB)
----tests()
--------test_module.py(2KB)
----.gitignore(83B)
----.coveragerc(32B)
----CHANGELOG(447B)