You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Sources/pyOpenRPA/Orchestrator/HandlerList.py

14 lines
557 B

from logging import StreamHandler
class HandlerDumpLog(StreamHandler):
def __init__(self, inDict, inKeyStr, inHashKeyStr, inRowCountInt):
StreamHandler.__init__(self)
self.Dict = inDict
self.KeyStr = inKeyStr
self.HashKeyStr = inHashKeyStr
self.RowCountInt = inRowCountInt
self.Dict[self.HashKeyStr]="0"
def emit(self, inRecord):
inMessageStr = self.format(inRecord)
self.Dict[self.KeyStr].append(inMessageStr)
self.Dict[self.HashKeyStr]=str(int(self.Dict[self.HashKeyStr])+1)