def __init__(self, name, sampleLogDir):
     self.name = name
     self.simLogger = utils.LoggerFactory("simLog", sampleLogDir)
     self.sampleLogDir = sampleLogDir
Exemple #2
0
def setGlobalLogger(config):
    global logger
    logger = utils.LoggerFactory(config["loggerName"], config["logDirPath"])
    logger.setLevel(logging.DEBUG)
 def __init__(self, sampleLogDir):
     self.httpLogger = utils.LoggerFactory("httpLog", sampleLogDir) #logger works only with warning or higher here...probs surpressed by mitmproxy
     self.sampleLogDir = sampleLogDir
     self.packetCounter = 0