From your mentioned syslog , I assume you were talking about Debian-like Linux.
There is really no need to write your own journal. Setting up /etc/default/puppet enough.
# Startup options DAEMON_OPTS="--logdest /var/log/puppet/puppet.log"
/etc/default/puppet is /etc/init.d/puppet , so the parameters you add here will be executed when the puppet service starts.
Documents on --logdest options: https://docs.puppetlabs.com/references/3.3.1/man/apply.html#OPTIONS
BTW, the deb deb doll provides that Debian (or Ubuntu) even includes a logrotate configuration file for /var/log/puppet , I donβt know why this option is not standard.
/var/log/puppet/*log { missingok sharedscripts create 0644 puppet puppet compress rotate 4 postrotate pkill -USR2 -u puppet -f 'puppet master' || true [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 || true endscript }
zsl
source share