I think that perhaps a bit more explanation might be helpful
I have an established pattern of capturing log messages so that i can check
them in unit tests. (The code/test first example)
I want to do that with slog (where slog emits a message and I capture that
message and compare it in the tes
github.com/UNO-SOFT/zlog/v2
NewT(t).SLog()
returns an *slog.Logger that uses t.Log for printing.
But maybe I don't understand your real problem.
shan...@gmail.com a következőt írta (2023. június 14., szerda, 2:14:27
UTC+2):
> In the past when I wanted to 'capture' the log output so that I coul