hauke96 / sigolo

Simple golang logging thingy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Single logger per goroutine

hauke96 opened this issue · comments

Webserver usually handle requests in separate goroutines. Automatically printing a routine-ID per log message enhances the traceability of requests.

Contra argument (why I removed it from v2): Starting go routines within a request would result in wrong logs because the inner go routine would get a new ID. There needs to be some more work on this feature idea.