The problem is that the OS is not generally known until runtime. Well, you
could pick it at install time, but then that would require the same
branching "if statement," done earlier, which is not a better deal. Or, you
could make the user pick it in weewx.conf, but most users wouldn't have a
clue what to pick.
Nevertheless, the user can change these options by using an undocumented
feature to override the handlers. For example, you could have put this in
weewx.conf and ended up in the same place:
[Logging]
[[handlers]]
# System logger
[[[syslog]]]
address = '/dev/log/user'
facility = 'user'
I want to see how this interface works out before documenting it.
-tk
On Sun, Mar 8, 2020 at 4:15 PM Greg Troxel <[email protected]> wrote:
> vince <[email protected]> writes:
>
> > On Sunday, March 8, 2020 at 10:50:20 AM UTC-7, mwall wrote:
> >>
> >> port 514 is the default for remote system logging (rsyslog). not sure
> why
> >> anyone would ever do localhost:514...
> >>
> > rsyslog to me doesn't mean remote, it's just one of many possible syslog
> > daemons you could have installed, so I could see it being used that way
> if
> > you wanted to force logging through a daemon that can do rewrite rules
> etc.
>
> So I don't understand why it makes sense to have this compiled in, if
> it's sysadmin's choice vs the standard interface on a particular OS.
>
> FWIW, on NetBSD syslogd can be made to listen on UDP port 514. Actually,
> this is the default beahvior of syslogd, but the standard startup
> scripts pass -s ("secure") to not listen to the network.
>
> (This being in weewx at all is surprising to me; I would expect the
> logging module to have any necessary per-os defaults. But I am very
> likely not understanding something. On BSDs there is syslog(3), a
> library interface to syslog, and programs using that do not have to know
> how to talk to syslogd. But that is not in POSIX, I'm pretty sure.)
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/rmimu8qxwtz.fsf%40s1.lexort.com
> .
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/CAPq0zEDDfNzersj1jxsQ3xCELOJ%2B3f5X%2BCVRzRsw-bfgcaLb4g%40mail.gmail.com.