Go Time: Golang, Software Engineering cover image

Bob Logblaw Log Blog

Go Time: Golang, Software Engineering

CHAPTER

Using a Logger in a Distributed System?

Go's context is very useful for like user ID maybe and you know, the host name. And that gets passed into the the logger when you write call a log line, the first arguments of context. I wish go went one step farther here. It would be nice if functions that you called so like, you know, with timeout or with whatever could take a string that would just print in whatever error block ultimately catches that context being canceled.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner