cloudfoundry-attic / blockhead

CF-Extensions Blockhead project
Apache License 2.0
3 stars 3 forks source link

debug logging #54

Closed MHBauer closed 5 years ago

MHBauer commented 5 years ago

I need to see things happening.

cfdreddbot commented 5 years ago

Hey MHBauer!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

MHBauer commented 5 years ago

some approximate examples


{"timestamp":"1538192964.490710735","source":"blockhead-broker","message":"blockhead-broker.start requestmethod:\"GET\" on URL:\"/v2/catalog\"","log_level":0,"data":{}}
{"timestamp":"1538192964.490983248","source":"blockhead-broker","message":"blockhead-broker.services.started","log_level":1,"data":{"session":"3"}}
{"timestamp":"1538192964.491045952","source":"blockhead-broker","message":"blockhead-broker.services.finished","log_level":1,"data":{"session":"3"}}
{"timestamp":"1538192964.491545200","source":"blockhead-broker","message":"blockhead-broker.finishedmethod:\"GET\" on URL:\"/v2/catalog\"","log_level":0,"data":{}}
{"timestamp":"1538192975.865339041","source":"blockhead-broker","message":"blockhead-broker.start requestmethod:\"GET\" on URL:\"/herp/v2/catalog\"","log_level":0,"data":{}}
{"timestamp":"1538192975.865708351","source":"blockhead-broker","message":"blockhead-broker.finishedmethod:\"GET\" on URL:\"/herp/v2/catalog\"","log_level":0,"data":{}}

maybe we can reuse some gorilla thing, but this was easy enough to write.