logger.info('trying...')
what could you possibly make of this?
AZ = get_az() REGION = get_region() event_uuid = create_event_uuid()
# assume timestamp and host are provided by logstash my_special_logger.info({ "message": "Currently registering user Michael Sverdlik.", "version": __version__, "module": __module__, "file": __file__ "context": { "what": "registration", "sub_what": "phone", "user_plan": "premium", "user_id": id, "time_to_register": "16", "country": "NL", "attempts": "912", "region": REGION, "availability_zone": AZ, "event_uuid": event_uuid, } })
{"level": "INFO", "message": "hacking user #USER#'s bank account #NUMBER#...", ,...,}
{"level": "DEBUG", "message": "retrieving the user's credit card and marital status.", ,...,}
{"level": "DEBUG", "message": "sending card number #NUMBER# to hacker #WHOIS#.", ,...,}
{"level": "DEBUG", "message": "waiting for hacker #WHOIS# to answer...", ,...,}
{"level": "DEBUG", "message": "hacker confirmation #NUMBER# received.", ,...,}
{"level": "DEBUG", "message": "sending the confirmation code to the DB.", ,...,}
{"level": "DEBUG", "message": "asking the DB for theft confirmation", ,...,}
{"level": "INFO", "message": "I managed to steal the user's money. Now go away!", ,...,}