aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-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