MCPcopy Create free account
hub / github.com/SegmentationBLWX/cssegmentation / __init__

Method __init__

csseg/modules/utils/logger.py:13–14  ·  view source on GitHub ↗
(self, logfilepath)

Source from the content-addressed store, hash-verified

11'''LocalLoggerHandle'''
12class LocalLoggerHandle():
13 def __init__(self, logfilepath):
14 self.logfilepath = logfilepath
15 '''log'''
16 def log(self, message, level='INFO', endwithnewline=True):
17 message = f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {level} {message}'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected