logger

package
v0.0.0-...-e1ceea9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Copyright 2020 CYBERCRYPT

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, msg string)

func Error

func Error(ctx context.Context, msg string, err error)

The following functions wrap the standard logging functions in order to provide structured logging for our service

func Fatal

func Fatal(ctx context.Context, msg string, err error)

func Info

func Info(ctx context.Context, msg string)

func StreamLogInterceptor

func StreamLogInterceptor() grpc.StreamServerInterceptor

Logging interceptor for stream calls

func StreamMethodNameInterceptor

func StreamMethodNameInterceptor() grpc.StreamServerInterceptor

Inject full method name into stream call

func StreamRequestIDInterceptor

func StreamRequestIDInterceptor() grpc.StreamServerInterceptor

StreamRequestIDInterceptor injects a request-scoped requestID which is later propagated to subsequent calls for tracing purposes

func UnaryLogInterceptor

func UnaryLogInterceptor() grpc.UnaryServerInterceptor

Logging interceptor for unary calls

func UnaryMethodNameInterceptor

func UnaryMethodNameInterceptor() grpc.UnaryServerInterceptor

Inject full method name into unary call

func UnaryRequestIDInterceptor

func UnaryRequestIDInterceptor() grpc.UnaryServerInterceptor

UnaryRequestIDInterceptor injects a request-scoped requestID which is later propagated to subsequent calls for tracing purposes

func Warn

func Warn(ctx context.Context, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL