logger

package
v0.0.0-...-2a45ea8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(template string, args ...interface{})
	Info(args ...interface{})
	Infof(template string, args ...interface{})
	Warning(args ...interface{})
	Warningf(template string, args ...interface{})
	Error(args ...interface{})
	Errorf(template string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(template string, args ...interface{})
}

Logger provides a basic functionality for any logger implementation

func NewClientLogger

func NewClientLogger(id uint32, opts ...Option) Logger

NewClientLogger creates new client's logger

func NewReplicaLogger

func NewReplicaLogger(id uint32, opts ...Option) Logger

NewReplicaLogger creates new replica's logger

type Option

type Option func(*options)

Option represents function type to set options.

func WithLogFile

func WithLogFile(f *os.File) Option

WithLogFile sets file path of logging file

func WithLogLevel

func WithLogLevel(l logging.Level) Option

WithLogLevel sets logging level

Jump to

Keyboard shortcuts

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