]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: enable sending local logs to journald
author胡玮文 <huww98@outlook.com>
Wed, 3 Mar 2021 07:01:56 +0000 (15:01 +0800)
committer胡玮文 <huww98@outlook.com>
Tue, 9 Mar 2021 12:14:00 +0000 (20:14 +0800)
commitf7a4b8c5944e5575f5eaeeed771483d78bd0c343
tree510267c5e80964f6c992eb91048e36c86626c832
parent68142daf25e396d4bd8c9caee31c4f0bfe88164f
common: enable sending local logs to journald

Enable ceph daemons to directly send logs to journald via unix domain socket.

While sending logs, metadata like priority, thread, timestamp is sent as
structured data. And can be queried by journalctl.

Note that I don't use libsystemd because I want the implementation to be as
efficient as possible.

Signed-off-by: 胡玮文 <huww98@outlook.com>
src/common/CMakeLists.txt
src/common/Journald.cc [new file with mode: 0644]
src/common/Journald.h [new file with mode: 0644]
src/common/ceph_context.cc
src/common/options.cc
src/crimson/CMakeLists.txt
src/log/Log.cc
src/log/Log.h