fflog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Semaphore.

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