new_contents: 
  """ Logging utilities """
  
  class LazyMessage(object):
      def __init__(self, fmt, args):
          self.fmt = fmt
          self.args = args
  
      def __str__(self):
          return self.fmt.format(self.args)
  
  
  class BracesAdapter(logging.LoggerAdapter):
      def __init__(self, logger, extra=None):
          super().__init__(logger, extra or {})
  
      def log(self, level, msg, *args, **kwargs):
          if self.isEnabledFor(level):
              msg, kwargs = self.process(msg, kwargs)
              self.logger._log(level, Message(msg, args), (), **kwargs)
  
  
  def get_logger(name):
      return BracesAdapter(logging.getLogger(name))
  
  
subject: add logging utilities