On 2022-02-27 22:16:54 +0000, Barry wrote:
> If you look at the code of the logging modules syslog handle you will see that
> it does not use syslog. It’s assuming that it can network to a syslog 
> listener.
> Such a listener is not running on my systems as far as I know.
> 
> I have always assumed that if I want a logger syslog handler that I would have
> to implement it myself. So far I have code that uses syslog directly and have
> not written that code yet.

What do you mean by using syslog directly? The syslog(3) library
function also just sends messages to a "syslog listener" (more commonly
called a syslog daemon) - at least on any unix-like system I'm familiar
with (which doesn't include MacOS). It will, however, always use the
*local* syslog daemon - AFAIK there is no standard way to open a remote
connection (many syslog daemons can be configured to forward messages to
a remote server, however).

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | h...@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachment: signature.asc
Description: PGP signature

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to