You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just thougth about a way using syslog config and the related cmdline option. That is still heavier stuff for the user than specifying an output file name (but i suppose you are using the syslog() ufnction from syslog.h so it may require additional code)
Hi! Because we use the syslog() API and when running in the foreground like that it currently activates LOG_PERROR. We can of course add support for wrapping a syslog() calls in a logit() or similar function where we can do whatever we like.
Understood.
if I have time this summer I could try to propose a patch. wrapping syslog calls plus a new cmdline option, that should not be a big deal. and the code of redir is KISS ;-)
hello, why choosing to log to stderr?
I wanted to tee the logs, and I am forced to write this:
the trick is " 2>&1 ".
It works, but it is far from perfect for use (you can lose the log depending on what happens to the console)
Why not directly logging to STDOUT as usual?
Best, I would love to be able to log to /var/log, in a separate file, with a format like info level, improved with the timestamp and the PEER IP
ie
The text was updated successfully, but these errors were encountered: