vendor: move vendored sources in-tree
This should make it easier to see changes instead of just a blob
This commit is contained in:
23
vendor/github.com/rabbitmq/amqp091-go/log.go
generated
vendored
Normal file
23
vendor/github.com/rabbitmq/amqp091-go/log.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2022 VMware, Inc. or its affiliates. All Rights Reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package amqp091
|
||||
|
||||
type Logging interface {
|
||||
Printf(format string, v ...interface{})
|
||||
}
|
||||
|
||||
var Logger Logging = NullLogger{}
|
||||
|
||||
// Enables logging using a custom Logging instance. Note that this is
|
||||
// not thread safe and should be called at application start
|
||||
func SetLogger(logger Logging) {
|
||||
Logger = logger
|
||||
}
|
||||
|
||||
type NullLogger struct {
|
||||
}
|
||||
|
||||
func (l NullLogger) Printf(format string, v ...interface{}) {
|
||||
}
|
||||
Reference in New Issue
Block a user