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
Post a Comment