v11.0.0
Breaking Changes
This package now accepts a *slog.Logger
from the Go standard library, rather than a Lager logger. This allows the use of alternative loggers.
- This package no longer requires you to import
code.cloudfoundry.org/lager/v3
. - The constructors
New()
,NewWithCustomAuth()
,NewWithOptions()
, and alsoAttachRoutes()
all take a*slog.Logger
apiresponses.FailureResponse
errors with aValidatedStatusCode()
method also take a*slog.Logger
rather than a Lager logger- The middleware
middlewares.APIVersionMiddleware
has had theLoggerFactory
field removed, and a new fieldLogger
added with type*slog.Logger
.
See #292 for details
Quick Fix
If you want to continue to use Lager, you can just convert it to a *slog.Logger
, for which you will need Lager v3.0.3 for example:
logger := lager.NewLogger("a-lager-logger")
router := brokerapi.New(serviceBroker, slog.New(lager.NewHandler(logger)), credentials)
What's Changed
- chore(deps): bump github.com/go-chi/chi/v5 from 5.0.11 to 5.0.12 by @dependabot in #293
- chore(deps): bump honnef.co/go/tools from 0.4.6 to 0.4.7 by @dependabot in #294
- chore(deps): bump github.com/onsi/ginkgo/v2 from 2.15.0 to 2.17.1 by @dependabot in #295 #297 #298
- chore(deps): bump github.com/onsi/gomega from 1.31.1 to 1.32.0 by @dependabot in #296
- feat!: introduce logger choice via slog by @blgm in #292
- docs: fix test badge in README by @blgm in #300
- feat!: update import path to v11 by @blgm in #299
Full Changelog: v10.2.0...v11.0.0