log

package
v0.0.0-...-a76a3ae Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Debug enables debug logs.
	Debug bool
	// UseJSON configures logger to use json instead of plain text.
	UseJSON bool
}

Config holds configuration options passed to the logger.

type Logger

type Logger struct {
	*slog.Logger
	// contains filtered or unexported fields
}

func New

func New(c Config) *Logger

func (Logger) NewStreamInterceptor

func (l Logger) NewStreamInterceptor() grpc.StreamServerInterceptor

func (Logger) NewUnaryInterceptor

func (l Logger) NewUnaryInterceptor() grpc.UnaryServerInterceptor

Jump to

Keyboard shortcuts

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