logwrap

package
v0.0.0-...-7cb0b6c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "tstor.log"

Variables

This section is empty.

Functions

func BadgerLogger

func BadgerLogger(name ...string) badger.Logger

Types

type NFSLog

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

func NewNFSLog

func NewNFSLog(r *slog.Logger) *NFSLog

func (*NFSLog) Debug

func (l *NFSLog) Debug(args ...interface{})

Debug implements nfs.Logger.

func (*NFSLog) Debugf

func (l *NFSLog) Debugf(format string, args ...interface{})

Debugf implements nfs.Logger.

func (*NFSLog) Error

func (l *NFSLog) Error(args ...interface{})

Error implements nfs.Logger.

func (*NFSLog) Errorf

func (l *NFSLog) Errorf(format string, args ...interface{})

Errorf implements nfs.Logger.

func (*NFSLog) Fatal

func (l *NFSLog) Fatal(args ...interface{})

Fatal implements nfs.Logger.

func (*NFSLog) Fatalf

func (l *NFSLog) Fatalf(format string, args ...interface{})

Fatalf implements nfs.Logger.

func (*NFSLog) GetLevel

func (l *NFSLog) GetLevel() nfs.LogLevel

GetLevel implements nfs.Logger.

func (*NFSLog) Info

func (l *NFSLog) Info(args ...interface{})

Info implements nfs.Logger.

func (*NFSLog) Infof

func (l *NFSLog) Infof(format string, args ...interface{})

Infof implements nfs.Logger.

func (*NFSLog) Panic

func (l *NFSLog) Panic(args ...interface{})

Panic implements nfs.Logger.

func (*NFSLog) Panicf

func (l *NFSLog) Panicf(format string, args ...interface{})

Panicf implements nfs.Logger.

func (*NFSLog) ParseLevel

func (l *NFSLog) ParseLevel(level string) (nfs.LogLevel, error)

ParseLevel implements nfs.Logger.

func (*NFSLog) Print

func (l *NFSLog) Print(args ...interface{})

Print implements nfs.Logger.

func (*NFSLog) Printf

func (l *NFSLog) Printf(format string, args ...interface{})

Printf implements nfs.Logger.

func (*NFSLog) SetLevel

func (l *NFSLog) SetLevel(level nfs.LogLevel)

SetLevel implements nfs.Logger.

func (*NFSLog) Trace

func (l *NFSLog) Trace(args ...interface{})

Trace implements nfs.Logger.

func (*NFSLog) Tracef

func (l *NFSLog) Tracef(format string, args ...interface{})

Tracef implements nfs.Logger.

func (*NFSLog) Warn

func (l *NFSLog) Warn(args ...interface{})

Warn implements nfs.Logger.

func (*NFSLog) Warnf

func (l *NFSLog) Warnf(format string, args ...interface{})

Warnf implements nfs.Logger.

type SlogWriter

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

func NewSlogWriter

func NewSlogWriter(ctx context.Context, level slog.Level, log *slog.Logger) *SlogWriter

func (*SlogWriter) Write

func (sw *SlogWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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