I would like my python program to log to multiple facilities (LOCALX), where each facility entry would be for a particular condition. For example, all logging of network traffic between X and program go to LOCAL0, and between Y and the program to LOCAL1.
Anyways, I can do this quite easily with python's logging mechanism: I would import logging, and create a Sysloghandler for each facility and add it to one or more loggers.
But python also has a syslog module. I wish to use this module instead since almost all of the other python code I'm contributing to uses syslog. Is it possible and how?
The syslog documents suggest that this can't be done.
I am using python 2.7
thanks.