Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

logging

v0.0.19
go.slink.ws/logging

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

14 matches

Top ↑

Types

Logger

type Logger interface {
	Clone(newId string) Logger
	Trace(message string, args ...interface{})
	Debug(message string, args ...interface{})
	Info(message string, args ...interface{})
	Warning(message string, args ...interface{})
	Error(message string, args ...interface{})
	Fatal(message string, args ...interface{})
	Panic(message string, args ...interface{})
	IsTraceEnabled() bool
	IsDebugEnabled() bool
	IsInfoEnabled() bool
	IsWarningEnabled() bool
	IsErrorEnabled() bool
	IsFatalEnabled() bool
	IsPanicEnabled() bool
	SetLevel(level string)
	GetLevel() string
}

GetFileLogger

func GetFileLogger(file *os.File, id string) Logger

GetLogger

func GetLogger(id string, opts ...Option) Logger

GetNoOpLogger

func GetNoOpLogger() Logger

Option

type Option func(zerolog.Context) zerolog.Context

WithCaller

func WithCaller(skipFrameCount ...int) Option

WithHook

func WithHook(hook zerolog.Hook) Option

WithLevel

func WithLevel(level zerolog.Level) Option

PyroscopeLoggerImpl

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

PyroscopeLogger

func PyroscopeLogger(logger Logger) *PyroscopeLoggerImpl

PyroscopeLoggerImpl.Debugf

func (l *PyroscopeLoggerImpl) Debugf(fmt string, args ...interface{})

PyroscopeLoggerImpl.Errorf

func (l *PyroscopeLoggerImpl) Errorf(fmt string, args ...interface{})

PyroscopeLoggerImpl.Infof

func (l *PyroscopeLoggerImpl) Infof(fmt string, args ...interface{})

Dependency graph