0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-27 01:08:50 +00:00
crazy-max_diun/vendor/github.com/rabbitmq/amqp091-go/log.go

23 lines
577 B
Go

// 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{}) {
}