Add ContextLogger wich extends logging.Logger's warning and error methods to automatically add the message to the context's events (if a context has been provided).