Lines Matching refs:logging
6 import logging
33 if not logging.root.isEnabledFor(logging.TRACE):
41 logging.root.log(logging.TRACE, "%s", line)
62 logging.info(f"found device: {dev.bus}/{dev.address} located at {path_from_usb_dev(dev)}")
81 logging.info(f"claiming interface:\n{usb9pfs}")
93 logging.info("interface claimed")
103 logging.info("connected to server")
110 logging.log(logging.TRACE, "c2s: reading")
113 logging.log(logging.TRACE, "c2s: reading timed out")
117 logging.debug("c2s: reading failed with %s, retrying", repr(e))
120 logging.error("c2s: reading failed with %s, aborting", repr(e))
125 logging.log(logging.TRACE, "c2s: writing")
128 logging.debug("c2s: forwarded %i bytes", size)
134 logging.log(logging.TRACE, "s2c: reading")
139 logging.log(logging.TRACE, "s2c: writing")
146 logging.log(logging.TRACE, "sending zero length packet")
148 logging.debug("s2c: forwarded %i bytes", size)
153 logging.info("statistics:")
155 logging.info(f" {k+':':14s} {v}")
228 logging.TRACE = logging.DEBUG - 5
229 logging.addLevelName(logging.TRACE, "TRACE")
232 level = logging.TRACE
234 level = logging.DEBUG
236 level = logging.INFO
237 logging.basicConfig(level=level, format="%(asctime)-15s %(levelname)-8s %(message)s")