carosio/jlog

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

jlog

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.

Dependencies

This tool depends on the systemd library “libsystemd”. This is easy to aquire:

o apt-get install libsystemd-dev

Installation

Simply use the makefile to create the binary.

Usage

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

Example

log MESSAGE="Hello World" META1=mymeta META2=myothermeta

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.