feature: add onboarding function for server and mail hostname

This commit is contained in:
usmannasir
2024-01-18 13:04:47 +05:00
parent b3de5abe10
commit d13ba6727f
7 changed files with 287 additions and 24 deletions

View File

@@ -54,6 +54,7 @@ class CyberCPLogFileWriter:
@staticmethod
def writeToFile(message, email=None):
try:
print("[" + time.strftime("%m.%d.%Y_%H-%M-%S") + "] "+ message)
file = open(CyberCPLogFileWriter.fileName,'a')
file.writelines("[" + time.strftime(
"%m.%d.%Y_%H-%M-%S") + "] "+ message + "\n")