vloghertz

package module
v0.0.0-...-5571ef7 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelTrace  = slog.Level(-8)
	LevelNotice = slog.Level(2)
	LevelFatal  = slog.Level(12)
)

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(opts ...vlog.Option) *vlog.Config

Types

type HLog

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

Logger slog impl

func NewHLog

func NewHLog(log *slog.Logger, opts ...vlog.Option) *HLog

func (*HLog) CtxDebugf

func (l *HLog) CtxDebugf(ctx context.Context, f string, v ...any)

func (*HLog) CtxErrorf

func (l *HLog) CtxErrorf(ctx context.Context, f string, v ...any)

func (*HLog) CtxFatalf

func (l *HLog) CtxFatalf(ctx context.Context, f string, v ...any)

func (*HLog) CtxInfof

func (l *HLog) CtxInfof(ctx context.Context, f string, v ...any)

func (*HLog) CtxNoticef

func (l *HLog) CtxNoticef(ctx context.Context, f string, v ...any)

func (*HLog) CtxTracef

func (l *HLog) CtxTracef(ctx context.Context, f string, v ...any)

func (*HLog) CtxWarnf

func (l *HLog) CtxWarnf(ctx context.Context, f string, v ...any)

func (*HLog) Debug

func (l *HLog) Debug(v ...any)

func (*HLog) Debugf

func (l *HLog) Debugf(f string, v ...any)

func (*HLog) Error

func (l *HLog) Error(v ...any)

func (*HLog) Errorf

func (l *HLog) Errorf(f string, v ...any)

func (*HLog) Fatal

func (l *HLog) Fatal(v ...any)

func (*HLog) Fatalf

func (l *HLog) Fatalf(f string, v ...any)

func (*HLog) Info

func (l *HLog) Info(v ...any)

func (*HLog) Infof

func (l *HLog) Infof(f string, v ...any)

func (*HLog) Logger

func (l *HLog) Logger() *slog.Logger

func (*HLog) Notice

func (l *HLog) Notice(v ...any)

func (*HLog) Noticef

func (l *HLog) Noticef(f string, v ...any)

func (*HLog) SetLevel

func (l *HLog) SetLevel(level hlog.Level)

func (*HLog) SetOutput

func (l *HLog) SetOutput(writer io.Writer)

func (*HLog) Trace

func (l *HLog) Trace(v ...any)

func (*HLog) Tracef

func (l *HLog) Tracef(f string, v ...any)

func (*HLog) Warn

func (l *HLog) Warn(v ...any)

func (*HLog) Warnf

func (l *HLog) Warnf(f string, v ...any)

Jump to

Keyboard shortcuts

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