MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/logging/handlers.py:857–876  ·  view source on GitHub ↗

Initialize a handler. If address is specified as a string, a UNIX socket is used. To log to a local syslogd, "SysLogHandler(address="/dev/log")" can be used. If facility is not specified, LOG_USER is used. If socktype is specified as socket.SOCK_DGRAM or soc

(self, address=('localhost', SYSLOG_UDP_PORT),
                 facility=LOG_USER, socktype=None)

Source from the content-addressed store, hash-verified

855 }
856
857 def __init__(self, address=('localhost', SYSLOG_UDP_PORT),
858 facility=LOG_USER, socktype=None):
859 """
860 Initialize a handler.
861
862 If address is specified as a string, a UNIX socket is used. To log to a
863 local syslogd, "SysLogHandler(address="/dev/log")" can be used.
864 If facility is not specified, LOG_USER is used. If socktype is
865 specified as socket.SOCK_DGRAM or socket.SOCK_STREAM, that specific
866 socket type will be used. For Unix sockets, you can also specify a
867 socktype of None, in which case socket.SOCK_DGRAM will be used, falling
868 back to socket.SOCK_STREAM.
869 """
870 logging.Handler.__init__(self)
871
872 self.address = address
873 self.facility = facility
874 self.socktype = socktype
875 self.socket = None
876 self.createSocket()
877
878 def _connect_unixsocket(self, address):
879 use_socktype = self.socktype

Callers

nothing calls this directly

Calls 2

createSocketMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected