logging

package
v0.0.0-...-2c3b082 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

badger doesn't do structured logging but is instead using xxf and formats the strings with parameters. That makes analyzis a bit tricky since the same error might

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err

func Err(e error) slog.Attr

func Finfo

func Finfo() slog.Attr

Finfo makes it easy to add file info without turning on AddSource in slog

func Func

func Func(n string) slog.Attr

func Lib

func Lib(n string) slog.Attr

Types

type BadgerLogger

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

func New

func New() *BadgerLogger

func (*BadgerLogger) Debugf

func (l *BadgerLogger) Debugf(f string, v ...interface{})

func (*BadgerLogger) Errorf

func (l *BadgerLogger) Errorf(f string, v ...interface{})

func (*BadgerLogger) Infof

func (l *BadgerLogger) Infof(f string, v ...interface{})

func (*BadgerLogger) Warningf

func (l *BadgerLogger) Warningf(f string, v ...interface{})

Jump to

Keyboard shortcuts

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