Changed Logger output
parent
d02a1beb9e
commit
d9ef99dcb1
|
|
@ -24,7 +24,7 @@ class Logger:
|
||||||
if not os.path.exists(path=cls.path):
|
if not os.path.exists(path=cls.path):
|
||||||
os.makedirs(os.path.dirname(cls.path), exist_ok=True)
|
os.makedirs(os.path.dirname(cls.path), exist_ok=True)
|
||||||
with open(cls.path, 'a') as file:
|
with open(cls.path, 'a') as file:
|
||||||
message = datetime.datetime.now().strftime('%Y.%m.%d %H:%M:%S') + ' ' + entry + ': ' + msg + ' ' + str(kind) + '\n'
|
message = datetime.datetime.now().strftime('%Y.%m.%d %H:%M:%S') + ' ' + entry + ': ' + str(kind) + ' ' + msg + '\n'
|
||||||
file.write(message)
|
file.write(message)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue