title: Create custom logging function for pythons logging module
body: <p>I have been trying for some time to figure out how to create a custom function for the python logging module. My goal is, with the usual function such as <code>logging.debug(...)</code> a log message over several channels, such as Telegram or MQTT, to publishing. So my idea is to add extra arguments to the normal log methode. For example <code>logging.debug ("a log", telegram=True, mqtt=False)</code> and maybe other arguments. All I find is the inheritance of the class logging.StreamingHandler and then using the method emit, but this only passes the argument record. So how can I implement my problem in a meaningful way? Do I have a thinking error or the wrong approach?</p>