Exemple #1
0
 def app_logging(self, log_type, message):
     # -- place holder function for application level logging.
     current_time = time.ctime(time.time())
     log = AppLogs(time=current_time, type=log_type, data=message)
     self.Session.add(log)
     self.Session.commit()
     return
Exemple #2
0
 def Log_ApplicationLogging(self, values):
     campaign = AppLogs(type=values['type'], data=values['data'])
     self.Session.add(campaign)
     try:
         self.Session.commit()  # flush check if this will work...
     except:
         return False