Пример #1
0
 def logd(self, func, msg):
   #if self.debug:
   #  log(self, func, msg)
   outStr = log_str(self, func, msg)
   if self.debug:  # only used to filter messages to stdout, all messages are sent to logger if available
     print outStr
   if self.logger is not None:
     self.logger.debug(outStr)
Пример #2
0
 def logi(self, func, msg):
   #log(self, func, msg)
   outStr = log_str(self, func, msg)
   print outStr
   if self.logger is not None:
     self.logger.info(outStr)
Пример #3
0
 def loge(self, func, msg):
   outStr = log_str(self, func, msg)
   print outStr
   if self.logger is not None:
     self.logger.error(outStr)