package log

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

Index

Constants

const (
	TRACE = Level(level.TRACE)
	DEBUG = Level(level.DEBUG)
	INFO  = Level(level.INFO)
	WARN  = Level(level.WARN)
	ERROR = Level(level.ERROR)
	FATAL = Level(level.FATAL)

	QUIET = Level(level.QUIET)
)

Functions

func Coordination

func Coordination(l Logger, details trace.Details) (t trace.Coordination)

Coordination makes trace.Coordination with logging events from details

func DatabaseSQL

func DatabaseSQL(l Logger, details trace.Details, opts ...option) (t trace.DatabaseSQL)

DatabaseSQL makes trace.DatabaseSQL with logging events from details

func Discovery

func Discovery(l Logger, details trace.Details) (t trace.Discovery)

Discovery makes trace.Discovery with logging events from details

func Driver

func Driver(l Logger, details trace.Details) (t trace.Driver)

Driver makes trace.Driver with logging events from details

func Ratelimiter

func Ratelimiter(l Logger, details trace.Details) (t trace.Ratelimiter)

Ratelimiter returns trace.Ratelimiter with logging events from details

func Retry

func Retry(l Logger, details trace.Details) (t trace.Retry)

Retry returns trace.Retry with logging events from details

func Scheme

func Scheme(l Logger, details trace.Details) (t trace.Scheme)

Scheme returns trace.Scheme with logging events from details

func Scripting

func Scripting(l Logger, details trace.Details, opts ...option) (t trace.Scripting)

Scripting returns trace.Scripting with logging events from details

func Secret

func Secret(secret string) string

func Table

func Table(l Logger, details trace.Details, opts ...option) (t trace.Table)

Table makes trace.Table with logging events from details

func Topic

func Topic(l Logger, details trace.Details) (t trace.Topic)

Topic returns trace.Topic with logging events from details

func WIthLogQuery

func WIthLogQuery() option

Types

type Level

type Level level.Level

func FromString

func FromString(l string) Level

type Logger

type Logger interface {
	// Tracef logs at Trace logger level using fmt formatter
	Tracef(format string, args ...interface{})
	// Debugf logs at Debug logger level using fmt formatter
	Debugf(format string, args ...interface{})
	// Infof logs at Info logger level using fmt formatter
	Infof(format string, args ...interface{})
	// Warnf logs at Warn logger level using fmt formatter
	Warnf(format string, args ...interface{})
	// Errorf logs at Error logger level using fmt formatter
	Errorf(format string, args ...interface{})
	// Fatalf logs at Fatal logger level using fmt formatter
	Fatalf(format string, args ...interface{})

	// WithName provide applying sub-scope of logger messages
	WithName(name string) Logger
}

Source Files

coordination.go discovery.go driver.go level.go log.go options.go ratelimiter.go retry.go scheme.go scripting.go secret.go sql.go table.go topic.go

Version
v3.34.0-rc1
Published
Aug 16, 2022
Platform
js/wasm
Imports
9 packages
Last checked
38 seconds ago

Tools for package owners.