Esempio n. 1
0
File: app.py Progetto: rubik/glim
    def register_log(self):
        """

        Function registers Log facade using configuration in app.config.<env>.

        Note:
          The Log facade will be registered using default configuration
          if there isn't any 'log' key in app.config.<env>.

        """
        if 'log' in self.config:
            Log.register(self.config['log'])
        else:
            Log.register()
Esempio n. 2
0
 def register_log(self):
     if 'log' in self.config:
         Log.register(log, self.config['log'])
     else:
         Log.register(log)