MCPcopy Create free account
hub / github.com/EDCD/EDDN / echoLogJSON

Function echoLogJSON

examples/Python 2.7/Client_Complete.py:75–83  ·  view source on GitHub ↗
(__json)

Source from the content-addressed store, hash-verified

73
74
75def echoLogJSON(__json):
76 global __logJSONFile
77
78 if __logJSONFile != False:
79 __logJSONFileParsed = __logJSONFile.replace('%DATE%', str(date('%Y-%m-%d')))
80
81 f = open(__logJSONFileParsed, 'a')
82 f.write(str(__json) + '\n')
83 f.close()
84
85
86def main():

Callers 1

mainFunction · 0.70

Calls 1

dateFunction · 0.70

Tested by

no test coverage detected