package logger

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/logger"

Index

Constants

const (
	TRACE = Level(iota)
	DEBUG
	INFO
	WARN
	ERROR
	FATAL

	QUIET
)

Functions

func New

func New(opts ...Option) *logger

Types

type Level

type Level int

func FromString

func FromString(l string) Level

func (Level) String

func (l Level) String() string

type Option

type Option func(l *logger)

func WithErrWriter

func WithErrWriter(err io.Writer) Option

func WithExternalLogger

func WithExternalLogger(external log.Logger) Option

func WithMinLevel

func WithMinLevel(level Level) Option

func WithNamespace

func WithNamespace(namespace string) Option

func WithNoColor

func WithNoColor(b bool) Option

func WithOutWriter

func WithOutWriter(out io.Writer) Option

Source Files

log.go

Version
v3.5.4
Published
Jan 3, 2022
Platform
darwin/amd64
Imports
6 packages
Last checked
now

Tools for package owners.