|
|
|
@ -310,6 +310,22 @@ def __UACClientAdminCreate__():
|
|
|
|
|
}
|
|
|
|
|
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:
|
|
|
|
|
# "BASIC" - create standart configuration
|
|
|
|
|
from pyOpenRPA.Orchestrator.Utils import LoggerHandlerDumpLogList
|
|
|
|
@ -337,6 +353,7 @@ def Create(inModeStr="BASIC"):
|
|
|
|
|
handler.setFormatter(mRobotLoggerFormatter)
|
|
|
|
|
mRobotLogger.addHandler(handler)
|
|
|
|
|
############################################
|
|
|
|
|
LoggerDumpLogHandlerAdd(inLogger=mRobotLogger, inGSettingsClientDict=lResult["Client"])
|
|
|
|
|
#mHandlerDumpLogList = LoggerHandlerDumpLogList.LoggerHandlerDumpLogList(inDict=lResult["Client"],
|
|
|
|
|
# inKeyStr="DumpLogList",
|
|
|
|
|
# inHashKeyStr="DumpLogListHashStr",
|
|
|
|
|