fflog

package
v1.37.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const LogDateFormat = time.RFC3339

Variables

This section is empty.

Functions

This section is empty.

Types

type FFLogger added in v1.30.0

type FFLogger struct {
	LeveledLogger *slog.Logger
	LegacyLogger  *log.Logger
}

func ConvertToFFLogger added in v1.30.0

func ConvertToFFLogger(logger *log.Logger) *FFLogger

func (*FFLogger) Debug added in v1.30.0

func (f *FFLogger) Debug(msg string, keysAndValues ...any)

func (*FFLogger) Error added in v1.30.0

func (f *FFLogger) Error(msg string, keysAndValues ...any)

func (*FFLogger) GetLogLogger added in v1.30.0

func (f *FFLogger) GetLogLogger(level slog.Level) *log.Logger

func (*FFLogger) Info added in v1.30.0

func (f *FFLogger) Info(msg string, keysAndValues ...any)

func (*FFLogger) Warn added in v1.30.0

func (f *FFLogger) Warn(msg string, keysAndValues ...any)

Jump to

Keyboard shortcuts

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