Help us shape the future of Go! Take the 2026 Go Developer Survey

logger

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterService

func RegisterService(s grpc.ServiceRegistrar, service *Service)

Types

type Config

type Config struct {
	Log Logger
}

type Logger

type Logger interface {
	logrus.FieldLogger

	GetLevel() logrus.Level
	SetLevel(level logrus.Level)
}

type Service

type Service struct {
	loggerv1.UnsafeLoggerServer
	// contains filtered or unexported fields
}

func New

func New(c Config) *Service

func (*Service) GetLogger

func (s *Service) GetLogger(ctx context.Context, _ *loggerv1.GetLoggerRequest) (*apitype.Logger, error)

func (*Service) ResetLogLevel

func (s *Service) ResetLogLevel(ctx context.Context, _ *loggerv1.ResetLogLevelRequest) (*apitype.Logger, error)

func (*Service) SetLogLevel

func (s *Service) SetLogLevel(ctx context.Context, req *loggerv1.SetLogLevelRequest) (*apitype.Logger, error)

Jump to

Keyboard shortcuts

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