aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vapi/vapi_json_parser.py
AgeCommit message (Collapse)AuthorFilesLines
2018-02-25vapi: handle more magicKlement Sekera1-3/+15
Change-Id: I25cbf947d6aabadbf637387497104cb301762def Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-12-10improve vapi json parser error handlingKlement Sekera1-1/+19
Change-Id: I39b975e6dc3b3ed1f81c1736ed498aee05f6a88b Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-09-28drop python3 dependencyKlement Sekera1-7/+7
Change-Id: I99c2c1d0d5b96f33efdb58dd3a2897a752e65349 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-09-19Add C++ APIKlement Sekera1-0/+2
Change-Id: Iff634f22d43470e2dc028387b3816257fd7b4156 Signed-off-by: Klement Sekera <ksekera@cisco.com>
2017-09-19Add new C APIKlement Sekera1-0/+303
Change-Id: I717ce3cd7c867c155de149ec56623269d26d0ff7 Signed-off-by: Klement Sekera <ksekera@cisco.com>
f">setup_custom_logger(name, log_path = None): # first make sure path availabe if log_path is None: log_path = os.getcwd()+'/trex_log.log' else: directory = os.path.dirname(log_path) if not os.path.exists(directory): os.makedirs(directory) logging.basicConfig(level = logging.DEBUG, format = '%(asctime)s %(name)-10s %(module)-20s %(levelname)-8s %(message)s', datefmt = '%m-%d %H:%M', filename= log_path, filemode= 'w') # define a Handler which writes INFO messages or higher to the sys.stderr consoleLogger = logging.StreamHandler() consoleLogger.setLevel(logging.ERROR) # set a format which is simpler for console use formatter = logging.Formatter('%(name)-12s: %(levelname)-8s %(message)s') # tell the handler to use this format consoleLogger.setFormatter(formatter) # add the handler to the logger logging.getLogger(name).addHandler(consoleLogger)