|
|
@ -293,7 +293,7 @@ def __Create__():
|
|
|
|
|
|
|
|
|
|
|
|
# inModeStr:
|
|
|
|
# inModeStr:
|
|
|
|
# "BASIC" - create standart configuration
|
|
|
|
# "BASIC" - create standart configuration
|
|
|
|
|
|
|
|
from pyOpenRPA.Orchestrator.Utils import LoggerHandlerDumpLogList
|
|
|
|
def Create(inModeStr="BASIC"):
|
|
|
|
def Create(inModeStr="BASIC"):
|
|
|
|
if inModeStr=="BASIC":
|
|
|
|
if inModeStr=="BASIC":
|
|
|
|
lResult = __Create__() # Create settings
|
|
|
|
lResult = __Create__() # Create settings
|
|
|
@ -308,7 +308,7 @@ def Create(inModeStr="BASIC"):
|
|
|
|
mRobotLogger.setLevel(logging.DEBUG)
|
|
|
|
mRobotLogger.setLevel(logging.DEBUG)
|
|
|
|
# create the logging file handler
|
|
|
|
# create the logging file handler
|
|
|
|
mRobotLoggerFH = logging.FileHandler(
|
|
|
|
mRobotLoggerFH = logging.FileHandler(
|
|
|
|
"Reports\ReportOrchestrator_" + datetime.datetime.now().strftime("%Y_%m_%d") + ".log")
|
|
|
|
"Reports\\" + 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
|
|
|
@ -318,4 +318,11 @@ def Create(inModeStr="BASIC"):
|
|
|
|
handler.setFormatter(mRobotLoggerFormatter)
|
|
|
|
handler.setFormatter(mRobotLoggerFormatter)
|
|
|
|
mRobotLogger.addHandler(handler)
|
|
|
|
mRobotLogger.addHandler(handler)
|
|
|
|
############################################
|
|
|
|
############################################
|
|
|
|
|
|
|
|
mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=lResult["Client"],
|
|
|
|
|
|
|
|
inKeyStr="DumpLogList",
|
|
|
|
|
|
|
|
inHashKeyStr="DumpLogListHashStr",
|
|
|
|
|
|
|
|
inRowCountInt=lResult["Client"][
|
|
|
|
|
|
|
|
"DumpLogListCountInt"])
|
|
|
|
|
|
|
|
mHandlerDumpLogList.setFormatter(mRobotLoggerFormatter)
|
|
|
|
|
|
|
|
mRobotLogger.addHandler(mHandlerDumpLogList)
|
|
|
|
return lResult # return the result dict
|
|
|
|
return lResult # return the result dict
|