syslog: new option to log in interactive sessions

Developers often want to run programs that log to stderr when they run
them by hand, but use syslog when run as a daemon.  Add a new flag that
turns on stderr logging only when stdin is a tty.

TEST=unittests pass

Change-Id: I8086a4613099c873800188415b97cc7b241ab847
Commit-Ready: Mike Frysinger <>
Tested-by: Mike Frysinger <>
Reviewed-by: Dan Erat <>
2 files changed