logger

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(message string, fields ...interface{})
	Debug(message string, fields ...interface{})
	Error(message string, err error, fields ...interface{})
	Fatal(message string, err error, fields ...interface{})
}

func NewLogger

func NewLogger(env string) (Logger, error)

NewLogger initializes a logger

type LoggerZapImpl

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

func (*LoggerZapImpl) Debug

func (l *LoggerZapImpl) Debug(message string, fields ...interface{})

func (*LoggerZapImpl) Error

func (l *LoggerZapImpl) Error(message string, err error, fields ...interface{})

func (*LoggerZapImpl) Fatal

func (l *LoggerZapImpl) Fatal(message string, err error, fields ...interface{})

func (*LoggerZapImpl) Info

func (l *LoggerZapImpl) Info(message string, fields ...interface{})

Jump to

Keyboard shortcuts

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