# Path: lib/Settings.py
# class Settings:
#     def __init__(self,
#                  override_settings_path='settings.cfg'):
#         self.settingsFilePath = override_settings_path
#         self.parser = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
#         self.settings = None
#         self.getSettings()
# 
#     def getSettings(self):
#         self.parser.read('./settings.cfg')
#         self.settings = {section: dict(**self.parser[section]) for section in self.parser.sections()}
# 
#         return self.settings
# 
#     def getServiceIp(self, service):
#         return self.settings['general']['my_ip']
# 
# Path: lib/Wrappers/NullLogger.py
# class NullLogger:
#     """
#     magic method that does nothing when you call null_logger.foo(),
#     null_logger.bar(), null_logger.whatever()
#     """
#     def __getattr__(self, item):
#         return lambda *args, **kwargs: None


import logging
import os
from lib.Settings import Settings
from lib.Wrappers.NullLogger import NullLogger


class Logger:
    def __init__(self, name):
        if 'UNITTESTING' in os.environ:
            self.logging = NullLogger()

# Path: lib/Settings.py
# class Settings:
#     def __init__(self,
#                  override_settings_path='settings.cfg'):
#         self.settingsFilePath = override_settings_path
#         self.parser = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
#         self.settings = None
#         self.getSettings()
# 
#     def getSettings(self):
#         self.parser.read('./settings.cfg')
#         self.settings = {section: dict(**self.parser[section]) for section in self.parser.sections()}
# 
#         return self.settings
# 
#     def getServiceIp(self, service):
#         return self.settings['general']['my_ip']
# 
# Path: lib/Wrappers/NullLogger.py
# class NullLogger:
#     """
#     magic method that does nothing when you call null_logger.foo(),
#     null_logger.bar(), null_logger.whatever()
#     """
#     def __getattr__(self, item):
#         return lambda *args, **kwargs: None


# Path: lib/Wrappers/Logger.py
import logging
import os
from lib.Settings import Settings
from lib.Wrappers.NullLogger import NullLogger



class Logger:
    def __init__(self, name):
        if 'UNITTESTING' in os.environ:
            self.logging = NullLogger()

        else: