text: import logging
  import os
  
  dotordash = 'ok'
  
  class ContextFilter(logging.Filter):
      """
      This is a filter which injects contextual information into the log.
      """
      def filter(self, record):
          record.dotordash = dotordash
          return True
  
  def log(success):
      logger = logging.getLogger(__name__)
      logger.setLevel(logging.INFO)
  
      # create a file handler
      handler = logging.FileHandler('success.log')
      handler.setLevel(logging.INFO)
  
      # create a logging format
      formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s - %(dotordash)s')
      handler.setFormatter(formatter)
  
      # add the handlers to the logger
      logger.addHandler(handler)
      logger.addFilter(ContextFilter())
      logger.info(success)
  