logger

package
v0.0.0-...-8735fdd Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 4 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 {
	Debug(msg string, fields ...map[string]interface{})
	Info(msg string, fields ...map[string]interface{})
	Warn(msg string, fields ...map[string]interface{})
	Error(msg string, fields ...map[string]interface{})
	Fatal(msg string, fields ...map[string]interface{})
}

Logger определяет интерфейс для логгера

type ZapLogger

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

func GetLogger

func GetLogger() *ZapLogger

func NewZapLogger

func NewZapLogger() *ZapLogger

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(msg string, fields ...map[string]interface{})

func (*ZapLogger) Error

func (l *ZapLogger) Error(msg string, fields ...map[string]interface{})

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(msg string, fields ...map[string]interface{})

func (*ZapLogger) GetZap

func (l *ZapLogger) GetZap() *zap.Logger

func (*ZapLogger) Info

func (l *ZapLogger) Info(msg string, fields ...map[string]interface{})

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(msg string, fields ...map[string]interface{})

Jump to

Keyboard shortcuts

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