Client Logger


Function that can be the observer for a FaunaClient. Will call logger_func on a string representation of each RequestResult.

Use it like:

def log(logged):
  print logged
client = FaunaClient(observer=logger(log), ...) # Calls `log`
Parameters:logger_func – Callback taking a string to be logged.

Translates a RequestResult to a string suitable for logging.