Name: jlog
Owner: CAROS.io
Description: a simple logger-like tool to write directly into systemds journal
Created: 2015-06-09 14:41:10.0
Updated: 2015-06-10 09:27:34.0
Pushed: 2015-07-08 10:52:09.0
Homepage: null
Size: 132
Language: C
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a simple logging tool which allows to directly log into systemds journal, without having to think about manual generation of the heavier metadata (e.g. cursor, real timestamps…). You can simply put valid fields into the logger and they will appear in journal accordingly.
This tool depends on the systemd library “libsystemd”. This is easy to aquire:
o apt-get install libsystemd-dev
Simply use the makefile to create the binary.
The input needs to be in journal conform format:
for more information read http://www.freedesktop.org/software/systemd/man/sd_journal_print.html or http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
log MESSAGE="Hello World" META1=mymeta META2=myothermeta