StefanKopieczek / gossip

SIP stack in Golang
GNU Lesser General Public License v2.1
336 stars 109 forks source link

Improve logging #14

Closed StefanKopieczek closed 9 years ago

StefanKopieczek commented 9 years ago

Logging library should log a timestamp and a thread ID.

rynorris commented 9 years ago

Not sure there's any way to get a thread ID. I had a little browse online and couldn't find anything except a bunch of people saying you're not supposed to access it. :(

rynorris commented 9 years ago

http://stackoverflow.com/questions/19115273/looking-for-a-call-or-thread-id-to-use-for-logging

rynorris commented 9 years ago

Seeing as it looks like a thread-ID isn't possible. Propose closing now that timestamps are done.

Close if you agree. :)

StefanKopieczek commented 9 years ago

Bah, what a shame :( Yes, I think you're right, although I don't buy their justification, and the IDs are clearly available to the runtime since it can print stacktraces.

But yes, nothing more we can do here.