Skip to content

Commit

Permalink
add experimental warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Aug 13, 2024
1 parent e322500 commit 2e35cf3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions grpclog/grpclog.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ func Println(args ...any) {
}

// InfoDepth logs to the INFO log at the specified depth.
//
// # Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
func InfoDepth(depth int, args ...any) {
if internal.DepthLoggerV2Impl != nil {
internal.DepthLoggerV2Impl.InfoDepth(depth, args...)
Expand All @@ -138,6 +143,11 @@ func InfoDepth(depth int, args ...any) {
}

// WarningDepth logs to the WARNING log at the specified depth.
//
// # Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
func WarningDepth(depth int, args ...any) {
if internal.DepthLoggerV2Impl != nil {
internal.DepthLoggerV2Impl.WarningDepth(depth, args...)
Expand All @@ -147,6 +157,11 @@ func WarningDepth(depth int, args ...any) {
}

// ErrorDepth logs to the ERROR log at the specified depth.
//
// # Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
func ErrorDepth(depth int, args ...any) {
if internal.DepthLoggerV2Impl != nil {
internal.DepthLoggerV2Impl.ErrorDepth(depth, args...)
Expand All @@ -156,6 +171,11 @@ func ErrorDepth(depth int, args ...any) {
}

// FatalDepth logs to the FATAL log at the specified depth.
//
// # Experimental
//
// Notice: This API is EXPERIMENTAL and may be changed or removed in a
// later release.
func FatalDepth(depth int, args ...any) {
if internal.DepthLoggerV2Impl != nil {
internal.DepthLoggerV2Impl.FatalDepth(depth, args...)
Expand Down

0 comments on commit 2e35cf3

Please sign in to comment.