News for hackers. Stuff that matters.
Re:Structured Logging with Slog by gdprrrr on Tuesday August 22, 2023 @03:03PM (#37227143)
Is ordering of the keys guaranteed to be the same as in the literal?
Re:Structured Logging with Slog by grose on Tuesday August 22, 2023 @03:15PM (#37227302)
That’s a good point. I think it would be random without some sorting shenanigans.
Re:Structured Logging with Slog by kiitos on Wednesday August 23, 2023 @07:44AM (#37234394)
Order should be preserved up to the Handler. Some Handlers e.g. JSONHandler produce output with key order explicitly undefined.