title: Logging Type Error In Dask Compute Method
body: <p>Here is the example python code, called dask_multithread_demo.py</p>
  <pre><code>import dask.bag as db
  import logging
  
  log = logging.getLogger(__name__)
  
  
  def dask_function(input_list):
      db.from_sequence(input_list) \
          .map(lambda x: log.info(f&quot;showing x: {x}&quot;)) \
          .compute()
  
  
  def main():
      dask.config.set(scheduler='single-threaded')
      dask_function([&quot;abc&quot;])
      dask.config.set(scheduler='multiprocessing')
      dask_function([&quot;abc&quot;])
  </code></pre>
  <p>When I run the main method and do the first call of dask_function, I do not get any Exceptions</p>
  <p>When I get to the second call of dask_function, I get the following exception</p>
  <pre><code>  File &quot;dask_multithread_demo.py&quot;, line 18, in main
      dask_function([&quot;abc&quot;])
    File &quot;dask_multithread_demo.py&quot;, line 10, in dask_function
      .map(lambda x: log.info(f&quot;showing x: {x}&quot;)) \
    File &quot;lib/python3.6/site-packages/dask/base.py&quot;, line 166, in compute
      (result,) = compute(self, traverse=False, **kwargs)
    File &quot;lib/python3.6/site-packages/dask/base.py&quot;, line 437, in compute
      results = schedule(dsk, keys, **kwargs)
    File &quot;lib/python3.6/site-packages/dask/multiprocessing.py&quot;, line 222, in get
      **kwargs
    File &quot;lib/python3.6/site-packages/dask/local.py&quot;, line 489, in get_async
      raise_exception(exc, tb)
    File &quot;lib/python3.6/site-packages/dask/local.py&quot;, line 318, in reraise
      raise exc.with_traceback(tb)
    File &quot;lib/python3.6/site-packages/dask/local.py&quot;, line 224, in execute_task
      task, data = loads(task_info)
  TypeError: get_logger() missing 1 required positional argument: 'name'
  get_logger() missing 1 required positional argument: 'name'
  </code></pre>
  <p>Here is my question: How do I do the logging in dask_function with scheduler set to &quot;multiprocessing&quot; without the Type Error Exception happening?</p>