logger

package
v0.0.0-...-ed705d2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug writes record into os.stdout with log level DEBUG

func Debugf

func Debugf(format string, v ...interface{})

Debugf writes record into os.stdout with log level DEBUG

func Error

func Error(v ...interface{})

Error writes record into os.stdout with log level ERROR

func Errorf

func Errorf(format string, v ...interface{})

Error writes record into os.stdout with log level ERROR

func Fatal

func Fatal(v ...interface{})

Fatal writes record into os.stdout with log level ERROR and exits

func Fatalf

func Fatalf(format string, v ...interface{})

Fatal writes record into os.stdout with log level ERROR

func FileLogger

func FileLogger(content any, fileName, fileExtension string) error

CreateFile creates a new file or overwrites an existing one with the specified filename, path, extension,

func Info

func Info(v ...interface{})

Info writes record into os.stdout with log level INFO

func Infof

func Infof(format string, v ...interface{})

Info writes record into os.stdout with log level INFO

func Init

func Init()

func LogRequest

func LogRequest(req *http.Request)

func LogResponse

func LogResponse(response *http.Response)

func StatsLogger

func StatsLogger(ctx context.Context, statsFunc func() (int64, int64, int64))

func Warn

func Warn(v ...interface{})

Warn writes record into os.stdout with log level WARN

func Warnf

func Warnf(format string, v ...interface{})

Warn writes record into os.stdout with log level WARN

Types

This section is empty.

Jump to

Keyboard shortcuts

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