title: How to create logging from Python notebook in Databricks to ADLS Gen2 (without mounting)?
body: <p>I'm trying to create a logging mechanism inside Databricks Python notebook. Tried using below code to achieve the same -</p>
  <pre><code>import logging
  
  def create_logger(name,log_path=None):
    
      logger = logging.getLogger(name)  
      logger.setLevel(logging.DEBUG)
      formatter    = logging.Formatter(&quot;%(asctime)s - %(levelname)-8s - %(message)s&quot;)  
      stream_handler = logging.StreamHandler()
      stream_handler.setFormatter(formatter)
      logger.addHandler(stream_handler)
      
      if log_path is not None:        
          file_handler = logging.FileHandler(log_path)
          file_handler.setFormatter(formatter)
          logger.addHandler(file_handler)
          
      return logger
  </code></pre>
  <p>However, whenever I'm trying to call the function as below -</p>
  <pre><code>from datetime import date, datetime
  current_date = date.today()
  current_timestamp = datetime.strftime(datetime.now(),&quot;%Y%m%d%H%M%S&quot;)
  
  name = &quot;temp_logs&quot;
  log_path = f&quot;abfss://{storageContainer}@{storageAccount}.dfs.core.windows.net/{target_dir}/logs/{current_date}/{name}_{current_timestamp}.txt&quot;
  
  logger = create_logger(name = name,log_path = log_path)
  </code></pre>
  <p>This is giving error as -</p>
  <pre><code>[Errno 2] No such file or directory: /databricks/driver/abfss:/temp-ontainer@teststorage.dfs.core.windows.net/test/logs/2021-09-13/temp_logs_20210913101150.txt'
  </code></pre>
  <p>Is there a way to handle this (without using mount point location) ?</p>