Beispiel #1
0
 def setup(self):
     root = logging.getLogger()
     root.setLevel(self.loglevel)
     receivers = setup_logging.send(sender=self, root=root,
                                    logfile=self.logfile,
                                    loglevel=self.loglevel)
     if not receivers:
         self.setup_handlers(root, self.logfile, self.format)
         after_logging_setup.send(sender=self, root=root,
                                  logfile=self.logfile,
                                  loglevel=self.loglevel)
     if self.app.config.LOG_REQUESTS:
         self.setup_request_logging()
     if self.app.config.LOG_TORNADO_REQUESTS:
         self.setup_tornado_logger()
Beispiel #2
0
 def setup(self):
     root = logging.getLogger()
     root.setLevel(self.loglevel)
     receivers = setup_logging.send(sender=self, root=root,
                                    logfile=self.logfile,
                                    loglevel=self.loglevel)
     if not receivers:
         self.setup_handlers(root, self.logfile, self.format)
         after_logging_setup.send(sender=self, root=root,
                                 logfile=self.logfile,
                                 loglevel=self.loglevel)
     logger = logging.getLogger('thriftpool.stdout')
     #self.redirect_stdouts_to_logger(logger)
     if self.app.config.LOG_REQUESTS:
         self.setup_request_logging()
Beispiel #3
0
 def setup(self):
     root = logging.getLogger()
     root.setLevel(self.loglevel)
     receivers = setup_logging.send(sender=self,
                                    root=root,
                                    logfile=self.logfile,
                                    loglevel=self.loglevel)
     if not receivers:
         self.setup_handlers(root, self.logfile, self.format)
         after_logging_setup.send(sender=self,
                                  root=root,
                                  logfile=self.logfile,
                                  loglevel=self.loglevel)
     logger = logging.getLogger('thriftpool.stdout')
     #self.redirect_stdouts_to_logger(logger)
     if self.app.config.LOG_REQUESTS:
         self.setup_request_logging()