]> Cypherpunks repositories - gostls13.git/commit
log: expose std via new Default function
authorColin Arnott <colin@urandom.co.uk>
Thu, 22 Oct 2020 22:16:01 +0000 (22:16 +0000)
committerIan Lance Taylor <iant@golang.org>
Fri, 23 Oct 2020 22:08:37 +0000 (22:08 +0000)
commit9db7db54b0e84d6b3ace94cb1f2a42e065575f17
treea444d325ff20f4a5effb24b1f702e6afbd362c20
parenta972e8ccb9824d97f029bde5409527fb27e85989
log: expose std via new Default function

To allow passing around the package level *Logger, it is now exposed to
callers of the Default function. We considered exposing std, however at
this time there is no need to allow callers to replace std only pass and
call methods directly.

Fixes #39057

Change-Id: I710b16a3aa5e4e878870561dbf59560f98d8d09a
Reviewed-on: https://go-review.googlesource.com/c/go/+/264460
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
src/log/log.go
src/log/log_test.go