MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / __init__

Method __init__

starrynet/log.py:98–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 __metaclass__ = Singleton
97
98 def __init__(self):
99
100 Logger.__init__(self, "starrynet")
101
102 # create console handler
103 ch = StreamHandlerNoNewline()
104 # create formatter
105 formatter = logging.Formatter(LOGMSGFORMAT)
106 # add formatter to ch
107 ch.setFormatter(formatter)
108 # add ch to lg
109 self.addHandler(ch)
110
111 self.setLogLevel()
112
113 def setLogLevel(self, levelname=None):
114 """Setup loglevel.

Callers

nothing calls this directly

Calls 3

setLogLevelMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected