text: from app import __metadata__ as m
  from app.lib.conf import MetaConf
  from app.lib import conf
  import os
  import logging.handlers
  import json
  import logging
  import logging.config
  
  class Log:
      def __init__(self, __name__):
          conf.Config()
          self.configFile = conf.Config().get(m.APP_NAME, '{}.log.conf'.format(m.APP_NAME.lower()))
          self.configure(__name__)
  
      def configure(self, __name__):
          logging.basicConfig()
          with open(self.configFile, "r") as fd:
              logConf = json.load(fd)
              logConf['handlers']['rollingFileAppender']['filename'] = conf.Config().get(m.APP_NAME, '{}.log.file'.format(m.APP_NAME.lower()))
              logConf['handlers']['file']['filename'] = conf.Config().get(m.APP_NAME, '{}.log.file'.format(m.APP_NAME.lower()))
              logging.config.dictConfig(logConf)
          logging.getLogger('werkzeug').setLevel(logging.CRITICAL)
          logging.getLogger('requests').setLevel(logging.CRITICAL)