def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def close(self):
        super(QueueingLogHandler, self).close()
        self._queue.put_nowait(None)