|
|
@ -9,7 +9,7 @@ if lPyOpenRPASourceFolderPathStr != "": sys.path.insert(0,os.path.abspath(os.pat
|
|
|
|
from pyOpenRPA.Agent import __Agent__
|
|
|
|
from pyOpenRPA.Agent import __Agent__
|
|
|
|
from pyOpenRPA.Tools import CrossOS
|
|
|
|
from pyOpenRPA.Tools import CrossOS
|
|
|
|
|
|
|
|
|
|
|
|
if CrossOS.IS_WINDOWS_BOOL: lPortInt = 80
|
|
|
|
if CrossOS.IS_WINDOWS_BOOL: lPortInt = 1024
|
|
|
|
if CrossOS.IS_LINUX_BOOL: lPortInt = 1024
|
|
|
|
if CrossOS.IS_LINUX_BOOL: lPortInt = 1024
|
|
|
|
gUserNameUpperStr = getpass.getuser().upper()
|
|
|
|
gUserNameUpperStr = getpass.getuser().upper()
|
|
|
|
if __name__ == "__main__": # New init way
|
|
|
|
if __name__ == "__main__": # New init way
|
|
|
@ -61,7 +61,7 @@ if __name__ == "__main__": # New init way
|
|
|
|
lL.setLevel(logging.INFO)
|
|
|
|
lL.setLevel(logging.INFO)
|
|
|
|
# create the logging file handler
|
|
|
|
# create the logging file handler
|
|
|
|
mRobotLoggerFH = logging.FileHandler(
|
|
|
|
mRobotLoggerFH = logging.FileHandler(
|
|
|
|
os.path.normpath("Logs\\" + gUserNameUpperStr + "_" + datetime.datetime.now().strftime("%Y_%m_%d") + ".log"))
|
|
|
|
CrossOS.PathStr("Logs\\" + gUserNameUpperStr + "_" + datetime.datetime.now().strftime("%Y_%m_%d") + ".log"))
|
|
|
|
mRobotLoggerFormatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
mRobotLoggerFormatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
mRobotLoggerFH.setFormatter(mRobotLoggerFormatter)
|
|
|
|
mRobotLoggerFH.setFormatter(mRobotLoggerFormatter)
|
|
|
|
# add handler to logger object
|
|
|
|
# add handler to logger object
|
|
|
|