-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace Debug function with a Debugger interface to permit trace recording. #65
base: master
Are you sure you want to change the base?
Conversation
I'm very much open to doing something better with logging, probably along the lines of https://github.com/codahale/lunk but I'm not quite sure what your motivation here is. You do realize you can already pair up request/response by the ID, right? Do you have a concrete example of how you want to use this? |
Not an example I can share directly, but the purpose of this is my log file I record timing as well as memory and CPU stats per log point and intend to I can do that via parsing but this feels less brittle. Ideally I'd also Nick.
|
Thank you. That's enough information that I think you'd be served well enough by having a trace ID in the messages and a good built-in "end processing" message, and that's what I wanted to do anyway. The elapsed time logging I would probably perform in fuse itself, much like http://godoc.org/github.com/codahale/lunk/web The one big thing I don't like about lunk is that it's concept of properties forces a flat structure, but that seems to be a common line of thinking among structured logging advocated, so I guess I'll just go ahead with that. Can you look into lunk and see if it matches what you want? |
Lunk would work- but I think we should not use it here. FUSE is in theory As such minimal proscription of logging hooks such that it can be used with You could readily use lunk with this structure, or just log. Thoughts? Not tied to my particular choices but making it flexible feels Nick.
|
I'd love to have an interface that's sufficient for lunk but not tied to it. |
So, basically the current pull req is sufficient; the only change to On Fri Feb 27 2015 at 9:57:18 AM Tv [email protected] wrote:
|
Definitely something more explicit than |
Well, to use this with Lunk is your logger would create Events in Properties would be solely {msg, msg.String()} On Fri Feb 27 2015 at 11:06:54 AM Tv [email protected] wrote:
|
Debug is useful for getting additional output, but in some environments it would be more powerful to have information on the actual trace spans.
Replace the current function with an interface that supports Begin/End/Print.