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

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

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -