def register_logging_handler(callback):
 special_logging_handlers.append(callback)

def register_logging_handler ( callback ) : special_logging_handlers . append ( callback )
registers a callback for log handling .