def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def emit(self, record):
        msg = self.format(record)
        self._queue.put_nowait(msg)