(__json)
| 73 | |
| 74 | |
| 75 | def 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 | |
| 86 | def main(): |