def fancy_logging():
 from log_buffer import FixedBufferHandler
 BUFFER_SIZE = (1500 * 200)
 buffer_handler = FixedBufferHandler(BUFFER_SIZE)
 _formatter = formatter.Formatter(LOG_FORMAT, DATE_FORMAT)
 buffer_handler.setLevel(logging.DEBUG)
 buffer_handler.setFormatter(_formatter)
 root_logger = logging.getLogger()
 root_logger.addHandler(buffer_handler)

def fancy_logging ( ) : from log_buffer import FixedBufferHandler BUFFER_SIZE = ( 1500 * 200 ) buffer_handler = FixedBufferHandler ( BUFFER_SIZE ) _formatter = formatter . Formatter ( LOG_FORMAT , DATE_FORMAT ) buffer_handler . setLevel ( logging . DEBUG ) buffer_handler . setFormatter ( _formatter ) root_logger = logging . getLogger ( ) root_logger . addHandler ( buffer_handler )
configure logging into a buffer for /logs endpoint .