¡@

Home 

python Programming Glossary: self.log.info

Python SocketServer: sending to multiple clients?

http://stackoverflow.com/questions/3670127/python-socketserver-sending-to-multiple-clients

self socket addr self.accept # For the remote client. self.log.info 'Accepted client at s' addr self.remote_clients.append RemoteClient.. RemoteClient self socket addr def handle_read self self.log.info 'Received message s' self.read def broadcast self message self.log.info.. 'Received message s' self.read def broadcast self message self.log.info 'Broadcasting message s' message for remote_client in self.remote_clients..

Naming Python loggers

http://stackoverflow.com/questions/401277/naming-python-loggers

import logging class Foo object ... def __init__ self ... self.log.info 'Meh' ... def logged_class cls ... cls.log logging.getLogger..