MCPcopy Create free account
hub / github.com/alibaba/GraphScope / init

Method init

python/graphscope/client/utils.py:259–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257class GSLogger(object):
258 @staticmethod
259 def init():
260 logging.basicConfig(level=logging.CRITICAL)
261 # Default logger configuration
262 stdout_handler = logging.StreamHandler(sys.stdout)
263 formatter = ConditionalFormatter(
264 "%(asctime)s [%(levelname)s][%(module)s:%(lineno)d]: %(message)s"
265 )
266 stdout_handler.setFormatter(formatter)
267 logger.addHandler(stdout_handler)
268 logger.propagate = False
269 GSLogger.update()
270
271 # nice traceback
272 try:
273 import rich.pretty
274 import rich.traceback
275
276 rich.traceback.install()
277 rich.pretty.install()
278 except ImportError:
279 pass
280
281 @staticmethod
282 def update():

Callers

nothing calls this directly

Calls 3

installMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected