logging

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logging is a copy of https://github.com/grpc-ecosystem/go-grpc-middleware/tree/v2/providers/zerolog with race conditions removed

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	zerolog.Logger
}

Logger is a zerolog logging adapter compatible with logging middlewares.

func InterceptorLogger

func InterceptorLogger(logger zerolog.Logger) *Logger

InterceptorLogger is a zerolog.Logger to Logger adapter.

func (*Logger) Log

func (l *Logger) Log(lvl logging.Level, msg string)

Log implements the logging.Logger interface.

func (Logger) With

func (l Logger) With(fields ...string) logging.Logger

With implements the logging.Logger interface.

Jump to

Keyboard shortcuts

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