MCPcopy Create free account
hub / github.com/andreikop/python-ws-discovery / setup_logger

Function setup_logger

wsdiscovery/cmdline.py:36–43  ·  view source on GitHub ↗
(name, loglevel)

Source from the content-addressed store, hash-verified

34
35
36def setup_logger(name, loglevel):
37 level = getattr(logging, loglevel, None)
38 if not level:
39 print("Invalid log level '%s'" % loglevel)
40 sys.exit()
41
42 logging.basicConfig(level=level)
43 return logging.getLogger(name)
44
45
46@click.command(context_settings=CONTEXT_SETTINGS)

Callers 2

discoverFunction · 0.85
publishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected