Skip to content

Commit

Permalink
add doc for disabling log opts (#680)
Browse files Browse the repository at this point in the history
Signed-off-by: Coleen Iona Quadros <coleen.quadros27@gmail.com>
  • Loading branch information
coleenquadros authored Nov 20, 2023
1 parent 3ade00c commit 9e92fd5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interceptors/logging/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ func WithTimestampFormat(format string) Option {
}

// WithDisableLoggingFields disables logging of gRPC fields provided.
// The following are the default logging fields:
// - SystemTag[0]
// - ComponentFieldKey
// - ServiceFieldKey
// - MethodFieldKey
// - MethodTypeFieldKey
//
// Usage example - WithDisableLoggingFields(logging.MethodFieldKey, logging.MethodTypeFieldKey)
func WithDisableLoggingFields(disableGrpcLogFields ...string) Option {
return func(o *options) {
o.disableGrpcLogFields = disableGrpcLogFields
Expand Down

0 comments on commit 9e92fd5

Please sign in to comment.