Lines Matching refs:logging
17 import logging
36 logging.error("Cannot find Protobuf compiler (>=3.0.0), please install"
38 logging.error(" prebuilts/tools/linux-x86_64/protoc/bin/protoc")
39 logging.error("If prebuilts are not available, use apt-get:")
40 logging.error(" sudo apt-get install protobuf-compiler")
44 logging.error('Can\'t find required file: %s\n' % proto_path)
50 logging.error("Output path is not a valid directory: %s" % (output_dir))
57 logging.error("Fail to compile proto")
79 logging.error("Cannot import generated py-proto %s" % (output_module_name))
111 root = logging.getLogger()
112 root.setLevel(logging.DEBUG)
113 log_handler = logging.StreamHandler(sys.stderr)
114 log_handler.setLevel(logging.DEBUG)
115 formatter = logging.Formatter("%(asctime)s %(levelname)s %(message)s")
119 logging.error("Not enough arguments. Need at least 2")
120 logging.error("Usage: " + sys.argv[0] + " <path_to_metric_proto>")
123 logging.info("Usage: " + sys.argv[0] + " <path_to_metric_proto>")
124 logging.info("Requires Protobuf compiler, protoc, version >=3.0.0")
128 logging.error("Cannot compile " + sys.argv[1])