mirror of
https://github.com/distribution/distribution.git
synced 2025-09-05 08:51:18 +00:00
5
vendor/google.golang.org/grpc/grpclog/logger.go
generated
vendored
5
vendor/google.golang.org/grpc/grpclog/logger.go
generated
vendored
@@ -42,6 +42,8 @@ import (
|
||||
)
|
||||
|
||||
// Use golang's standard logger by default.
|
||||
// Access is not mutex-protected: do not modify except in init()
|
||||
// functions.
|
||||
var logger Logger = log.New(os.Stderr, "", log.LstdFlags)
|
||||
|
||||
// Logger mimics golang's standard Logger as an interface.
|
||||
@@ -54,7 +56,8 @@ type Logger interface {
|
||||
Println(args ...interface{})
|
||||
}
|
||||
|
||||
// SetLogger sets the logger that is used in grpc.
|
||||
// SetLogger sets the logger that is used in grpc. Call only from
|
||||
// init() functions.
|
||||
func SetLogger(l Logger) {
|
||||
logger = l
|
||||
}
|
||||
|
Reference in New Issue
Block a user