When using logger, log to stderr (via logger -s) only if connected to a (p|t)ty.
Log to stderr without trying to use logger if /dev/log is not a socket or the logger command is unavailable.
Also document that util-linux is now optional, and fix a small issue with unwanted output (override log, not logger, when suppressing "command not found" output while probing for available IP parsing/expansion implementations).
Summary of changes:
logger
, log to stderr (vialogger -s
) only if connected to a(p|t)ty
.logger
if/dev/log
is not a socket or thelogger
command is unavailable.Also document that
util-linux
is now optional, and fix a small issue with unwanted output (overridelog
, notlogger
, when suppressing "command not found" output while probing for available IP parsing/expansion implementations).