mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-02-18 11:02:26 -05:00
Update httplog from [v2](https://pkg.go.dev/github.com/go-chi/httplog#section-readme) to [v3](https://pkg.go.dev/github.com/go-chi/httplog/v3). `httplog` now runs with `slog.Logger` instead of zerolog, so we can use our build-in logs instead of having to create neew httplogger. However, the request logger only takes a single logger instance; wherease in Toolbox, we separate each log instance into `outLogger` and `errLogger`. A new `SplitHandler` is added to helps route the separate Logger into a single `*slog.Logger` instance. #2336 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>