copied from private repo

This commit is contained in:
jblu committed 2022-07-14 19:03:06 -05:00
commit ef21adc132
7 files changed
+181

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
#The third file shall contain logging and email communication.
def torlog(self):
if self.loglevel == 'DEBUG':
self.tl.basicConfig(filename=self.logpath, format='%(asctime)s:%(levelname)s:%(message)s', encoding='utf-8', datefmt='%m/%d/%Y %I:%M:%S %p',level=self.tl.DEBUG)
if self.loglevel == 'INFO':
self.tl.basicConfig(filename=self.logpath, format='%(asctime)s:%(levelname)s:%(message)s', encoding='utf-8', datefmt='%m/%d/%Y %I:%M:%S %p',level=self.tl.INFO)
def toremail(self):
pass
def getunixtimestamp(self):
self.uts = self.t.time()
self.tl.info(self.uts)