iceprod :: core :: logger :: IceProdDgramHandler :: Class IceProdDgramHandler
[hide private]
[frames] | no frames]

Class IceProdDgramHandler

source code

      logging.Filterer --+            
                         |            
           logging.Handler --+        
                             |        
logging.handlers.SocketHandler --+    
                                 |    
  logging.handlers.DatagramHandler --+
                                     |
                                    IceProdDgramHandler

Instance Methods [hide private]
 
__init__(self, host, port, site='?')
Initializes the handler with a specific host address and port.
source code
 
emit(self, record)
Emit a record.
source code

Inherited from logging.handlers.DatagramHandler: makeSocket, send

Inherited from logging.handlers.SocketHandler: close, createSocket, handleError, makePickle

Inherited from logging.Handler: acquire, createLock, flush, format, handle, release, setFormatter, setLevel

Inherited from logging.Filterer: addFilter, filter, removeFilter

Method Details [hide private]

__init__(self, host, port, site='?')
(Constructor)

source code 

Initializes the handler with a specific host address and port.

Overrides: logging.Filterer.__init__
(inherited documentation)

emit(self, record)

source code 

Emit a record.

Pickles the record and writes it to the socket in binary format. If there is an error with the socket, silently drop the packet. If there was a problem with the socket, re-establishes the socket.

Overrides: logging.Handler.emit
(inherited documentation)