git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] daemon: add --no-syslog to undo implicit --syslog

From
Lucas Werkmeister <mail@lucaswerkmeister.de>
Date
Jan 24, 2018, 10:05 UTC
Message-ID
<b9bde80b-5da8-0d5b-f0a9-4ca1f1a74b23@lucaswerkmeister.de>
In-Reply-To
<18ef807d-a642-17b2-fc32-af0c3b963a71@lucaswerkmeister.de>
On 23.01.2018 23:06, Lucas Werkmeister wrote:
Show 6 quoted lines
> Ah, I wasn’t aware of that – so with --detach, --no-syslog would be
> better described as “disables all logging” rather than “log to stderr
> instead”. IMHO it would still make sense to have the --no-syslog option
> (then mainly for use with --inetd) as long as its interaction with
> --inetd is properly documented… do you agree? If yes, I’ll be glad to
> submit another version of the patch.

One alternative idea would be to instead make syslog and stderr logging orthogonal by adding not just --no-syslog, but also --[no-]stderr. For backwards compatibility, --syslog would imply --no-stderr, but you could also enable logging to both channels with --syslog --stderr, or disable all logging with --no-syslog --no-stderr. But that doesn’t really solve the interaction with --detach – --detach --stderr would still be a nonsensical combination.

Previous: Lucas WerkmeisterNext: Junio C Hamano
Message 5 of 21 in “daemon: add --no-syslog to undo implicit --syslog”
  1. daemon: add --no-syslog to undo implicit --syslogLucas Werkmeister, Jan 22, 2018
  2. Ævar Arnfjörð BjarmasonJan 23, 2018
  3. Junio C HamanoJan 23, 2018
  4. Lucas WerkmeisterJan 23, 2018
  5. Lucas WerkmeisterJan 24, 2018
  6. Junio C HamanoJan 24, 2018
  7. Lucas WerkmeisterJan 24, 2018
  8. daemon: add --send-log-to=(stderr|syslog|none)Lucas Werkmeister, Jan 27, 2018
  9. Eric SunshineJan 28, 2018
  10. Lucas WerkmeisterJan 28, 2018
  11. Eric SunshineJan 29, 2018
  12. daemon: add --log-destination=(stderr|syslog|none)Lucas Werkmeister, Feb 3, 2018
  13. Eric SunshineFeb 4, 2018
  14. Lucas WerkmeisterFeb 4, 2018
  15. daemon: add --log-destination=(stderr|syslog|none)Lucas Werkmeister, Feb 4, 2018
  16. Ævar Arnfjörð BjarmasonFeb 4, 2018
  17. Lucas WerkmeisterFeb 4, 2018
  18. Ævar Arnfjörð BjarmasonFeb 5, 2018
  19. Eric SunshineFeb 4, 2018
  20. Eric SunshineFeb 4, 2018
  21. Junio C HamanoFeb 5, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.