| VLOGGER(8) | System Manager's Manual | VLOGGER(8) |
vlogger — log
messages to syslog or an arbitrary executable
vlogger |
[-isS] [-f
file] [-p
pri] [-t
tag] [message ...] |
The vlogger utility writes messages to the
system log or an arbitrary executable.
If vlogger is executed as
logger it will always use the system log and behave
like the regular logger(1).
Without message arguments
vlogger reads messages from
stdin or the file specified with the
-f flag. If the /etc/vlogger
executable exists vlogger executes it with
tag, level and
facility as arguments, replacing the
vlogger process.
If vlogger is executed as a log service
for runit(8) or another daemontools like
supervision suite it uses the service name as default
tag. As example if vlogger is
linked to /var/service/foo/log/run it uses
“foo” as tag and
“daemon.notice” as pri.
The options are as follows:
-f
file-ivlogger process. Only supported
if syslog(3) is used.-p
pri-Svlogger to use
syslog(3) even if
/etc/vlogger exists.-s-t
tagLOGNAME environment variable.vlogger process.The vlogger utility exits 0 on
success, and >0 if an error occurs.
/etc/vlogger:
#!/bin/sh exec svlogd /var/log/$1
This program is a replacement for the
logger utility provided by
util-linux.
Duncan Overbruck <mail@duncano.de>
vlogger is in the public domain.
To the extent possible under law, the creator of this work has waived all copyright and related or neighboring rights to this work.
| March 1, 2017 | x86_64 |