nbrownus / mlogger

Log to syslog from the command line, just like `logger` but more massive
21 stars 3 forks source link

mlogger

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:

Usage

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

Building

To build mlogger

make