title: Logger output in AWS Sagemaker Jupyter notebook
body: <p>I would like to see the custom logs that I create inside an AWS Sagemaker JupyterLab notebook (that uses a Glue development endpoint). I want to see them as the output of a notebook cell.</p>
  
  <p>I tried with:</p>
  
  <pre><code>import logging
  logger = logging.getLogger()
  logger.setLevel(logging.DEBUG)
  logger.info("I want to see it as output in my notebook cell.")
  </code></pre>
  
  <p>and also with:</p>
  
  <pre><code>sc = SparkContext.getOrCreate()
  glueContext = GlueContext(sc)
  logger = glueContext.get_logger()
  logger.info("I want to see it as output in my notebook cell.")
  </code></pre>
  
  <p>but both give no output, in comparison to a <code>print("Hi")</code> which correctly gives the "Hi" output on the notebook.</p>
  
  <p>Although I want the logs on the notebook itself, I've also checked if they are available as CloudWatch Logs, but there the logs of my notebook look like <code>[W 10:42:34.540 NotebookApp] zmq message arrived on closed channel</code> (in any case, I want them on the notebook, not in CloudWatch).</p>
  
  <p>Many thanks </p>