log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogLevel

func WithLogLevel(ctx context.Context, logLevel uint) context.Context

WithLogLevel create a context with logging level

Types

type LogWriter

type LogWriter struct {
	Info func(format string, a ...interface{})
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *Logger

FromContext returns logger from context

func (*Logger) V

func (l *Logger) V(level uint) *LogWriter

V returns log writter at log level

Jump to

Keyboard shortcuts

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