Package skytools :: Module skylog :: Class UdpLogServerHandler
[frames] | no frames]

Class UdpLogServerHandler

source code

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

Sends log records over UDP to logserver in JSON format.

Instance Methods
 
makePickle(self, record)
Create message in JSON format.
source code

Inherited from logging.handlers.DatagramHandler: __init__, makeSocket, send

Inherited from logging.handlers.SocketHandler: close, emit, handleError

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

Inherited from logging.Filterer: addFilter, filter, removeFilter

Class Variables
  MAXMSG = 1024
Method Details

makePickle(self, record)

source code 
Create message in JSON format.
Overrides: logging.handlers.SocketHandler.makePickle