Documentation ¶
Index ¶
- type Logger
- type ZapLogger
- func (l *ZapLogger) Debug(msg string, fields ...map[string]interface{})
- func (l *ZapLogger) Error(msg string, fields ...map[string]interface{})
- func (l *ZapLogger) Fatal(msg string, fields ...map[string]interface{})
- func (l *ZapLogger) GetZap() *zap.Logger
- func (l *ZapLogger) Info(msg string, fields ...map[string]interface{})
- func (l *ZapLogger) Warn(msg string, fields ...map[string]interface{})
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 NewZapLogger ¶
func NewZapLogger() *ZapLogger
Click to show internal directories.
Click to hide internal directories.