compat

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFormatted

func FromFormatted(logger FormattedLogger) glog.Logger

FromFormatted adapts a format-style logger into a glog.Logger.

func PrintfFunc

func PrintfFunc(logger glog.Logger, level string) func(format string, args ...any)

PrintfFunc returns a printf-style callback bound to the requested level.

Types

type FormattedLogger

type FormattedLogger interface {
	Debugf(format string, args ...any)
	Infof(format string, args ...any)
	Warnf(format string, args ...any)
	Errorf(format string, args ...any)
}

FormattedLogger is a format-style logger contract used by legacy integrations.

func ToFormatted

func ToFormatted(logger glog.Logger) FormattedLogger

ToFormatted adapts a glog.Logger into a format-style logger.

Jump to

Keyboard shortcuts

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