MCPcopy Create free account
hub / github.com/ActiveState/code / log

Method log

recipes/Python/475215_Discreet_SimulatiRound/recipe-475215.py:28–37  ·  view source on GitHub ↗
(self, *strings)

Source from the content-addressed store, hash-verified

26
27 # logs the strings to a file
28 def log(self, *strings):
29 if self.__logging:
30 assert strings
31 if self.__format:
32 assert len(strings[0]) == self.__format
33 prefix = '[' + strings[0] + '] '
34 else:
35 prefix = ''
36 for index in range(int(bool(self.__format)), len(strings)):
37 self.__log.write(prefix + strings[index] + '\n')
38
39################################################################################
40

Callers 11

authorsFunction · 0.45
__init__Method · 0.45
recipe-412603.pyFile · 0.45
f3Function · 0.45
f2Function · 0.45
f1Function · 0.45
goFunction · 0.45
__scheduleMethod · 0.45
__processMethod · 0.45
__blockedMethod · 0.45
__terminateMethod · 0.45

Calls 2

rangeFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected