old_contents: # Copyright (c) 2014, Guillermo López-Anglada. Please see the AUTHORS file for details.
  # All rights reserved. Use of this source code is governed by a BSD-style
  # license that can be found in the LICENSE file.)
  
  import logging
  import os
  
  import sublime
  
  
  class PluginLogger(object):
      """A logger intented to be used from plugin files inside this package.
      """
      def __init__(self, name):
          logger = logging.getLogger(name)
          logger.setLevel(logging.ERROR)
          self.logger = logger
  
      def debug(self, msg, *args, **kwargs):
          self.logger.debug(msg, *args, **kwargs)
  
      def info(self, msg, *args, **kwargs):
          self.logger.info(msg, *args, **kwargs)
  
      def warning(self, msg, *args, **kwargs):
          self.logger.warning(msg, *args, **kwargs)
  
      def error(self, msg, *args, **kwargs):
          self.logger.error(msg, *args, **kwargs)
  
      def critical(self, msg, *args, **kwargs):
          self.logger.critical(msg, *args, **kwargs)
  
new_contents: # Copyright (c) 2014, Guillermo López-Anglada. Please see the AUTHORS file for details.
  # All rights reserved. Use of this source code is governed by a BSD-style
  # license that can be found in the LICENSE file.)
  
  import logging
  import os
  
  import sublime
  
  
  # If we don't do this, logging will fail sometimes. :-/
  logging.basicConfig()
  
  
  class PluginLogger(object):
      """A logger intented to be used from plugin files inside this package.
      """
      def __init__(self, name):
          self.logger = logging.getLogger(name)
          self.logger.setLevel(logging.DEBUG)
  
      def debug(self, msg, *args, **kwargs):
          self.logger.debug(msg, *args, **kwargs)
  
      def info(self, msg, *args, **kwargs):
          self.logger.info(msg, *args, **kwargs)
  
      def warning(self, msg, *args, **kwargs):
          self.logger.warning(msg, *args, **kwargs)
  
      def error(self, msg, *args, **kwargs):
          self.logger.error(msg, *args, **kwargs)
  
      def critical(self, msg, *args, **kwargs):
          self.logger.critical(msg, *args, **kwargs)
  
subject: add hack