I monitor my script with the logging module of the Python Standard Library and I send the loggings to both the console with StreamHandler, and to a file with FileHandler. I would like to have the option to disable a handler for a LogRecord independantly of its severity. For example, for a specific LogRecord I would like to have the
Tag: handler
Creating multiple tcp socket handlers from one class in Python
Is it possible in Python3 to create a TCP Socket handler class that can have multiple unique instances? I have 2 threaded TCP Socket servers that are providing unique information to the connected client. I am trying to make it so that ‘node 1’ socket server handler will provide only the data for ‘node 1’ while ‘node 2’ socket server
Calling a Tornado handler in another handler
I want to split a Tornado handler in two handlers. In the first handler, I want send a command to a sensor. In the second handler, I want to wait for a response from the sensor. Is this possible? Or I can’t call an handler from another? If it’s possible, how I can call this second handler? Thank you very