logger

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger

type ILogger interface {
	Info(string, ...interface{})
	Warning(string, ...interface{})
	Error(string, ...interface{})
}

type ZapLogger

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

func NewZapLogger

func NewZapLogger() ZapLogger

func (*ZapLogger) Error

func (zl *ZapLogger) Error(message string, fields ...interface{})

func (*ZapLogger) Info

func (zl *ZapLogger) Info(message string, fields ...interface{})

func (*ZapLogger) Warning

func (zl *ZapLogger) Warning(message string, fields ...interface{})

type ZeroLog

type ZeroLog struct {
}

func NewZeroLog

func NewZeroLog() ZeroLog

func (*ZeroLog) Error

func (zl *ZeroLog) Error(message string, fields ...interface{})

func (*ZeroLog) Info

func (zl *ZeroLog) Info(message string, fields ...interface{})

func (*ZeroLog) Warning

func (zl *ZeroLog) Warning(message string, fields ...interface{})

Jump to

Keyboard shortcuts

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