Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose logBridge via NewStandardLog() #369

Merged
merged 1 commit into from Mar 30, 2023

Commits on Feb 16, 2023

  1. expose logBridge via NewStandardLog()

    Various libraries, including stdlib, accept *log.Logger to support
    optional logging. Let's expose logBridge to facilitate working with
    these libraries.
    
    stdlib examples:
    * [http.Server.ErrorLog]
    * [httputil.ReverseProxy.ErrorLog]
    
    [http.Server.ErrorLog]: https://cs.opensource.google/go/go/+/refs/tags/go1.20.1:src/net/http/server.go;l=2679-2683;drc=ea4631cc0cf301c824bd665a7980c13289ab5c9d
    [httputil.ReverseProxy.ErrorLog]: https://cs.opensource.google/go/go/+/refs/tags/go1.20.1:src/net/http/httputil/reverseproxy.go;l=173-176;drc=458241f981e0a8e1d9e0b2f6ae53be62f00001d2
    mikedanese committed Feb 16, 2023
    Configuration menu
    Copy the full SHA
    4de3d37 View commit details
    Browse the repository at this point in the history