Closed itamarst closed 8 years ago
Provide a logging.Handler that uses the MDK session from the Flask request, or a default session if logging happens outside of the context of a request.
logging.Handler
The Logger name is used as the category, e.g. if I do:
Logger
logger = Logger("hello") logger.addHandler(MDKLoggingHandler(mdk)) logger.info("bar")
this is equivalent to:
mdk_session.info("hello", "bar")
Provide a
logging.Handler
that uses the MDK session from the Flask request, or a default session if logging happens outside of the context of a request.The
Logger
name is used as the category, e.g. if I do:this is equivalent to: