Closed sjhitchner closed 10 years ago
Thanks, I like the idea. I'll try to merge it in later today or tomorrow.
cool, glad you like the changes
Sorry it took so long to merge this in, I completely forgot about it until just now. Feel free to open issues with any other suggestions.
This methods will be useful so that more involved logging can be turned on when the code is in a lower debug state
i.e.
JSON serialized Request and Response objects when in debugging mode, which won't be logged when in production.
if log.IsTrace() { b, _ := json.MarshalIdent(struct), "", " ") log.Trace(string(b)) }