mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-10-19 13:49:53 +00:00
47b202554e
This commit adds the Azure SDK for Azure key vault KMS integration to the Ceph CSI driver. Signed-off-by: Praveen M <m.praveen@ibm.com>
39 lines
827 B
Go
39 lines
827 B
Go
//go:build go1.18
|
|
// +build go1.18
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
// This is an internal helper package to combine the complete logging APIs.
|
|
package log
|
|
|
|
import (
|
|
azlog "github.com/Azure/azure-sdk-for-go/sdk/azcore/log"
|
|
"github.com/Azure/azure-sdk-for-go/sdk/internal/log"
|
|
)
|
|
|
|
type Event = log.Event
|
|
|
|
const (
|
|
EventRequest = azlog.EventRequest
|
|
EventResponse = azlog.EventResponse
|
|
EventRetryPolicy = azlog.EventRetryPolicy
|
|
EventLRO = azlog.EventLRO
|
|
)
|
|
|
|
func Write(cls log.Event, msg string) {
|
|
log.Write(cls, msg)
|
|
}
|
|
|
|
func Writef(cls log.Event, format string, a ...interface{}) {
|
|
log.Writef(cls, format, a...)
|
|
}
|
|
|
|
func SetListener(lst func(Event, string)) {
|
|
log.SetListener(lst)
|
|
}
|
|
|
|
func Should(cls log.Event) bool {
|
|
return log.Should(cls)
|
|
}
|