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

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

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -