MCPcopy Create free account
hub / github.com/FDio/vpp / format

Method format

test/log.py:23–27  ·  view source on GitHub ↗
(self, record)

Source from the content-addressed store, hash-verified

21 super(ColorFormatter, self).__init__(fmt, datefmt)
22
23 def format(self, record):
24 message = super(ColorFormatter, self).format(record)
25 if hasattr(record, "color"):
26 message = colorize(message, record.color)
27 return message
28
29
30# 40 = ERROR, 30 = WARNING, 20 = INFO, 10 = DEBUG, 0 = NOTSET (all messages)

Callers 15

create_packetsMethod · 0.80
test_srv6_usid_srhMethod · 0.80
create_packetsMethod · 0.80
test_srv6_usidMethod · 0.80
create_packetsMethod · 0.80
create_packetsMethod · 0.80
test_srv6_usid_flexMethod · 0.80
post_vm_test_runFunction · 0.80
set_loggingFunction · 0.80
run.pyFile · 0.80
get_parallel_loggerFunction · 0.80

Calls 1

colorizeFunction · 0.85

Tested by 15

create_packetsMethod · 0.64
test_srv6_usid_srhMethod · 0.64
create_packetsMethod · 0.64
test_srv6_usidMethod · 0.64
create_packetsMethod · 0.64
create_packetsMethod · 0.64
test_srv6_usid_flexMethod · 0.64
print_resultsMethod · 0.64
pg_streamMethod · 0.64