Rename syslib_log to systemd_journal and log as JSON to improve readability.

Add the optional -DBINARYLOGS flag to encode the JSON logs as Base64.
This allows to log binary data as well but it is turned off for
backwards-compatibility.

Requested by https://github.com/reyk/systemd-openbsd/issues/3
This commit is contained in:
reykfloeter 2019-06-18 14:45:19 +02:00
commit ef95987cfd
10 changed files with 136 additions and 42 deletions

View file

@ -12,9 +12,12 @@ CFLAGS+=-DDEBUGSHELL -DSECURE
# Set this flag to enable regress tests.
#CFLAGS+=-DJUSTKIDDING
# Enable debug messages
# Enable debug messages.
#CFLAGS+=-DDEBUG
# Encode logs as Base64 to allow logging of binary data.
#CFLAGS+=-DBINARYLOGS
# Some /sbin make flags
LDSTATIC=${STATIC}
BINDIR= /sbin
@ -27,6 +30,7 @@ CFLAGS+=-Wsign-compare -Wcast-qual
SRCS= init.c
SRCS+= systemd.c
SRCS+= systemd-journald.c
SRCS+= systemd-file.c
SRCS+= systemd-dir.c
SRCS+= systemd-proc.c