fflog

package
v1.0.0-dev-2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const LogDateFormat = time.RFC3339

LogDateFormat is the default log format

Variables

This section is empty.

Functions

This section is empty.

Types

type FFLogger

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

FFLogger is the internal logger struct for GO Feature Flag

func ConvertToFFLogger

func ConvertToFFLogger(logger *log.Logger) *FFLogger

ConvertToFFLogger is converting a classic logger to our internal logger.

func (*FFLogger) Debug

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

Debug is the function to use to log debug

func (*FFLogger) Error

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

Error is the function to use to log error

func (*FFLogger) GetLogLogger

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

GetLogLogger is returning a classic logger from a slog logger

func (*FFLogger) Info

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

Info is the function to use to log info

func (*FFLogger) Warn

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

Warn is the function to use to log warn

Jump to

Keyboard shortcuts

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