News for hackers. Stuff that matters.
Re:Go 1.21 Released by kiitos on Saturday August 12, 2023 @06:47PM (#37104915)
I don't think so.

A Handler is something that transforms log events to concrete outputs (files, disks, writes to stderr, etc.) via side effects.

A Logger is what programs use to produce, transform, etc. log events.

Both are abstract interfaces with arbitrarily many possible implementations. Both are defined in terms of their user-facing capabilities. I'm not sure how those definitions would differ. Both accept log events and do something with them. That interface is the same.

There are no comments on this comment yet.