Help with logging in Scotty handlers

I’m comparing logging libraries and I’m stuck with co-log. I already asked on StackOverflow but so far got no replies.

In short: I don’t know how to create an instance for co-log so I can use withLog in a handler in the same way I’m doing it for katip

I created a repository where you can see the issue. I would have preferred this as a single file with a Nix shebang line but at the time of writing co-log was broken in Nixpkgs. I have since fixed this and will check if I can now just provide a single file.

In the meantime though… any ideas? This problem means I just can’t use co-log here at all, since without being able to modify the logger for a given scope I miss out on the co-log equivalent of namespaces and contexts.

(Couldn’t make all of the URLs proper links since new users can only include 2 links)