Logging for Concurrent Go Programs
Log is an important part for debugging.
Troubleshooting and debugging of a concurrent program is difficult. In Golang, this getting even worse as officially the Goroutine’s id is not exposed for access.
But its kind of well known and spread out that the goroutine id can be obtained using some go runtime stack information. This technique can even be found in the golang source…