Skip to content

A minimal alternative to logger/systemd-cat that accepts multiline messages

License

Notifications You must be signed in to change notification settings

drivenet/jlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jlogger

Motivation

This is a simple tool to send multiline messages to journald. It's very much alike logger --journald or systemd-cat, but accepts multiline messages for transport. This is useful, for example, when sending any kind of diagnostic reports to a centralized logging service.

Building

gcc jlogger.c -o jlogger -O3 -s -Wall -Wpedantic -Wextra -lsystemd

Usage

some-program | jlogger <priority> <identifier>

About

A minimal alternative to logger/systemd-cat that accepts multiline messages

Topics

Resources

License

Stars

Watchers

Forks

Languages