Re: Feature Request: Named Arguments for Structured Logging such as JSON

2024-04-07 Thread Ralph Goers
I wasn’t aware GoLang had a “standard” logger. Last time I checked GoLang’s logging library was awful. Log4j 2 has supported what you want ever since Json Template Layout was added. See https://logging.apache.org/log4j/2.x/manual/json-template-layout.html. To get what you want just specify a pa

Feature Request: Named Arguments for Structured Logging such as JSON

2024-04-07 Thread Clayton Wohl
The Golang standard library lets you do this: slog.Info("showing named arguments with structured logging", slog.Bool("some-bool", true), slog.Int("some-int", 123), slog.Float64("some-float64", 1.234), slog.String("some-string", "xyz")) which outputs the following at runtime: {"ti

Re: Wrapped exceptions

2024-04-07 Thread Ralph Goers
Unfortunately, the ScriptFilter won’t solve the world’s problems. I would imagine there are plenty of environments that disallow scripting in their production environment. That said, I think we can do better than creating a new Filter for every thing to be tested. Ralph > On Apr 5, 2024, at 1