Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
key_value_store.py
class KeyValueStore:
...
def write_to_log(self, string_operation, path_to_logs=''):
if path_to_logs == '':
path_to_logs = "logs/" + self.server_name + "_log.txt"
f = open(path_to_logs, "a+")
f.write(string_operation + '\n')
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment