News for hackers. Stuff that matters.
Re:Choosing Go at American Express by liampulles on Wednesday January 03, 2024 @05:15PM (#38860604)
You may rejoice on the logging front: https://go.dev/blog/slog
Re:Choosing Go at American Express by aaomidi on Wednesday January 03, 2024 @09:47PM (#38862431)
This is nice but it’s not a simple library to use and I think that’s going to hurt it.
Re:Choosing Go at American Express by i_am_programmer on Thursday January 04, 2024 @04:00AM (#38864737)
It's as easy to use as other 3rd party logging libs.

I frequently make use and it's as easy as slog.Info("text", "field", value, "field", value)

Re:Choosing Go at American Express by jen20 on Thursday January 04, 2024 @10:42AM (#38868306)
It’s very simple to use, but dilly-dallying about a standard structured logging package means it’s now not widespread across third party libraries.

Many non-trivial Go apps have 4-5 logging frameworks pulled in, it’s a mess.