python logging.Handler that uses kvlayer