From a9e05fe5c0911a8ca5ad0746e54a5c38a8b832a4 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 1 Jan 2018 16:32:13 -0600 Subject: [PATCH] Promote logger, and fluff up help text a bit. --- toys/{pending => posix}/logger.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) rename toys/{pending => posix}/logger.c (82%) diff --git a/toys/pending/logger.c b/toys/posix/logger.c similarity index 82% rename from toys/pending/logger.c rename to 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 * * 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 -- 2.39.2