text: import logging
  
  # Configure the root logger t0 DEBUG to allow the "debug" flag to receive the logs
  root_logger = logging.getLogger()
  root_logger.setLevel(logging.DEBUG)
  
  # Then reconfigure the StreamHandler not to display anything below WARNING as default
  stream_handler = logging.StreamHandler()
  stream_handler.setLevel(logging.WARNING)
  root_logger.addHandler(stream_handler)
  
  # Change log-levels before modules are loaded to avoid verbose log messages.
  logging.getLogger('haystack.modeling').setLevel(logging.WARNING)
  logging.getLogger('haystack.modeling.utils').setLevel(logging.INFO)
  logging.getLogger('haystack.modeling.infer').setLevel(logging.INFO)
  logging.getLogger('transformers').setLevel(logging.WARNING)
  logging.getLogger('haystack.modeling.evaluation.eval').setLevel(logging.INFO)
  logging.getLogger('haystack.modeling.model.optimization').setLevel(logging.INFO)
  logging.getLogger('faiss.loader').setLevel(logging.WARNING)
  
  import pandas as pd
  from haystack.schema import Document, Answer, Label, MultiLabel, BaseComponent, Span
  from haystack.pipeline import Pipeline
  from haystack._version import __version__
  
  pd.options.display.max_colwidth = 80
  
  logger = logging.getLogger(__name__)
  