diff options
author | Rob Landley <rob@landley.net> | 2018-01-01 16:32:13 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-01-01 16:32:13 -0600 |
commit | a9e05fe5c0911a8ca5ad0746e54a5c38a8b832a4 (patch) | |
tree | f35e0679611c05906b2ec70536c01bdc48600456 | |
parent | 359888abf649ed3292210e3518aa669dac1480b9 (diff) | |
download | toybox-a9e05fe5c0911a8ca5ad0746e54a5c38a8b832a4.tar.gz |
Promote logger, and fluff up help text a bit.
-rw-r--r-- | toys/posix/logger.c (renamed from toys/pending/logger.c) | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/toys/pending/logger.c b/toys/posix/logger.c index 8a458b58..16262c9f 100644 --- a/toys/pending/logger.c +++ b/toys/posix/logger.c @@ -3,16 +3,22 @@ * Copyright 2013 Ilya Kuzmich <ilya.kuzmich@gmail.com> * * See http://pubs.opengroup.org/onlinepubs/9699919799/utilities/logger.html + * + * Deviations from posix: specified manner and format, defined implementation. USE_LOGGER(NEWTOY(logger, "st:p:", TOYFLAG_USR|TOYFLAG_BIN)) config LOGGER bool "logger" - default n + default y help - usage: logger [-s] [-t tag] [-p [facility.]priority] [message] + usage: logger [-s] [-t TAG] [-p [FACILITY.]PRIORITY] [message...] Log message (or stdin) to syslog. + + -s Also write message to stderr + -t Use TAG instead of username to identify message source + -p Specify PRIORITY with optional FACILITY. Default is "user.notice" */ #define FOR_logger |