OSDN Git Service

Promote logger, and fluff up help text a bit.
authorRob Landley <rob@landley.net>
Mon, 1 Jan 2018 22:32:13 +0000 (16:32 -0600)
committerRob Landley <rob@landley.net>
Mon, 1 Jan 2018 22:32:13 +0000 (16:32 -0600)
toys/posix/logger.c [moved from toys/pending/logger.c with 82% similarity]

similarity index 82%
rename from toys/pending/logger.c
rename to toys/posix/logger.c
index 8a458b5..16262c9 100644 (file)
@@ -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