logger

package
v0.0.0-...-eeef5bb Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = zap.Error
View Source
var Int = zap.Int
View Source
var String = zap.String

Functions

This section is empty.

Types

type Argument

type Argument = zapcore.Field

type Logger

type Logger interface {
	Debug(message string, args ...Argument)
	Info(message string, args ...Argument)
	Warn(message string, args ...Argument)
	Error(message string, args ...Argument)
}

type TestLogger

type TestLogger struct {
}

func NewTestLogger

func NewTestLogger(loggerParam config.LoggerConfig) *TestLogger

func (*TestLogger) Debug

func (zl *TestLogger) Debug(message string, args ...Argument)

func (*TestLogger) Error

func (zl *TestLogger) Error(message string, args ...Argument)

func (*TestLogger) Info

func (zl *TestLogger) Info(message string, args ...Argument)

func (*TestLogger) Warn

func (zl *TestLogger) Warn(message string, args ...Argument)

type ZapLogger

type ZapLogger struct {
	Zap *zap.Logger
}

func NewLogger

func NewLogger(loggerParam config.LoggerConfig) *ZapLogger

func (*ZapLogger) Debug

func (zl *ZapLogger) Debug(message string, args ...Argument)

func (*ZapLogger) Error

func (zl *ZapLogger) Error(message string, args ...Argument)

func (*ZapLogger) Info

func (zl *ZapLogger) Info(message string, args ...Argument)

func (*ZapLogger) Warn

func (zl *ZapLogger) Warn(message string, args ...Argument)

Jump to

Keyboard shortcuts

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