|
|
@ -310,6 +310,22 @@ def __UACClientAdminCreate__():
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return lResultDict
|
|
|
|
return lResultDict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Init the log dump to WEB
|
|
|
|
|
|
|
|
# import pdb; pdb.set_trace()
|
|
|
|
|
|
|
|
############################################
|
|
|
|
|
|
|
|
def LoggerDumpLogHandlerAdd(inLogger, inGSettingsClientDict):
|
|
|
|
|
|
|
|
lL = inLogger
|
|
|
|
|
|
|
|
if len(lL.handlers) == 0:
|
|
|
|
|
|
|
|
mRobotLoggerFormatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
mRobotLoggerFormatter = lL.handlers[0].formatter
|
|
|
|
|
|
|
|
mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=inGSettingsClientDict,
|
|
|
|
|
|
|
|
inKeyStr="DumpLogList", inHashKeyStr="DumpLogListHashStr", inRowCountInt=inGSettingsClientDict[
|
|
|
|
|
|
|
|
"DumpLogListCountInt"])
|
|
|
|
|
|
|
|
mHandlerDumpLogList.setFormatter(mRobotLoggerFormatter)
|
|
|
|
|
|
|
|
lL.addHandler(mHandlerDumpLogList)
|
|
|
|
|
|
|
|
|
|
|
|
# inModeStr:
|
|
|
|
# inModeStr:
|
|
|
|
# "BASIC" - create standart configuration
|
|
|
|
# "BASIC" - create standart configuration
|
|
|
|
from pyOpenRPA.Orchestrator.Utils import LoggerHandlerDumpLogList
|
|
|
|
from pyOpenRPA.Orchestrator.Utils import LoggerHandlerDumpLogList
|
|
|
@ -337,6 +353,7 @@ def Create(inModeStr="BASIC"):
|
|
|
|
handler.setFormatter(mRobotLoggerFormatter)
|
|
|
|
handler.setFormatter(mRobotLoggerFormatter)
|
|
|
|
mRobotLogger.addHandler(handler)
|
|
|
|
mRobotLogger.addHandler(handler)
|
|
|
|
############################################
|
|
|
|
############################################
|
|
|
|
|
|
|
|
LoggerDumpLogHandlerAdd(inLogger=mRobotLogger, inGSettingsClientDict=lResult["Client"])
|
|
|
|
#mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=lResult["Client"],
|
|
|
|
#mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=lResult["Client"],
|
|
|
|
# inKeyStr="DumpLogList",
|
|
|
|
# inKeyStr="DumpLogList",
|
|
|
|
# inHashKeyStr="DumpLogListHashStr",
|
|
|
|
# inHashKeyStr="DumpLogListHashStr",
|
|
|
|