Skip to content

Instantly share code, notes, and snippets.

@ajin
Created November 29, 2020 19:31
Show Gist options
  • Save ajin/b3cf903f918d3d08c02b9f970338f9c3 to your computer and use it in GitHub Desktop.
Save ajin/b3cf903f918d3d08c02b9f970338f9c3 to your computer and use it in GitHub Desktop.
Setup homebridge.log with rsyslog
# this will create a conf for rsyslog to generate logs to homebridge.log
cat > /etc/rsyslog.d/homebridge.conf << EOF
if $programname == 'homebridge' then {
action(type="omfile" file="/var/log/homebridge.log")
stop
}
EOF
systemctl restart rsyslog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment