fflog

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 5 Imported by: 6

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 added in v1.30.0

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

FFLogger is the internal logger struct for GO Feature Flag

func ConvertToFFLogger added in v1.30.0

func ConvertToFFLogger(logger *log.Logger) *FFLogger

ConvertToFFLogger is converting a classic logger to our internal logger.

func (*FFLogger) Debug added in v1.30.0

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

Debug is the function to use to log debug

func (*FFLogger) Error added in v1.30.0

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

Error is the function to use to log error

func (*FFLogger) GetLogLogger added in v1.30.0

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

GetLogLogger is returning a classic logger from a slog logger

func (*FFLogger) Info added in v1.30.0

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

Info is the function to use to log info

func (*FFLogger) Warn added in v1.30.0

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