A simple utility that logs different sources to syslog
It is based on bsdutils logger
, which is shipped with many linux distros, Ubuntu being one.
It has been patched for:
MAX_LINE
constant. You may also have to patch syslog.h for your kernel,
this was not required on Ubuntu 12.04/proc/sys/net/core/wmem_default
).mlogger [options] [message]
Options:
-d, --udp use UDP (TCP is default)
-i, --id log the process ID too
-f, --file <file> log the contents of this file
-h, --help display this help text and exit
-n, --server <name> write to this remote syslog server
-P, --port <number> use this UDP port
-p, --priority <prio> mark given message with this priority
-s, --stderr output message to standard error as well
-t, --tag <tag> mark every line with this tag
-u, --socket <socket> write to this Unix socket
-I, --indent <ms> Will consider intended lines continuation of the previous line, within the timeout
specified in milliseconds
-V, --version output version information and exit
or
man mlogger
To build mlogger
make