logging - How to tag the log messages with a request header in golang using logrus? -


i new golang, , need attaching http request header of go application in log entries http request.the request processed multiple packages/go files. use logrus package logging. have ton of code written already, nice change on global level instead of going each log entry.

in java, use slf4j, , use feature called mdc; , looking similar.


Comments

Popular posts from this blog

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

Java Entity Manager - JSON reader was expecting a value but found 'db' -