logger

package
v0.0.0-...-150216c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Debug(message interface{}, args ...interface{})
	Info(message string, args ...interface{})
	Infof(template string, args ...interface{})
	Warn(message string, args ...interface{})
	Warnf(template string, args ...interface{})
	Error(message interface{}, args ...interface{})
	Fatal(message interface{}, args ...interface{})
	Errorf(template string, args ...interface{})
	KafkaProcessMessage(topic string, partition int, message []byte, workerID int, offset int64, time time.Time)
	KafkaLogCommittedMessage(topic string, partition int, offset int64)
}

Interface -.

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger -.

func New

func New(level string) *Logger

New -.

func (*Logger) Debug

func (logger *Logger) Debug(message interface{}, args ...interface{})

Debug -.

func (*Logger) Error

func (logger *Logger) Error(message interface{}, args ...interface{})

Error -.

func (*Logger) Errorf

func (logger *Logger) Errorf(template string, args ...interface{})

Errorf -.

func (*Logger) Fatal

func (logger *Logger) Fatal(message interface{}, args ...interface{})

Fatal -.

func (*Logger) Info

func (logger *Logger) Info(message string, args ...interface{})

Info -.

func (*Logger) Infof

func (logger *Logger) Infof(template string, args ...interface{})

Infof uses fmt.Sprintf to log a templated message.

func (*Logger) KafkaLogCommittedMessage

func (logger *Logger) KafkaLogCommittedMessage(topic string, partition int, offset int64)

func (*Logger) KafkaProcessMessage

func (logger *Logger) KafkaProcessMessage(topic string, partition int, message []byte, workerID int, offset int64, time time.Time)

func (*Logger) Warn

func (logger *Logger) Warn(message string, args ...interface{})

Warn -.

func (*Logger) Warnf

func (logger *Logger) Warnf(template string, args ...interface{})

Warnf uses fmt.Sprintf to log a templated message.

Jump to

Keyboard shortcuts

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