logging

package
v0.0.0-...-973239c Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 2 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, args ...interface{})
	Info(msg string, args ...interface{})
	Warn(msg string, args ...interface{})
	Error(msg string, args ...interface{})
	Fatal(msg string, args ...interface{})
}

type ZapLogger

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

func NewZapLogger

func NewZapLogger(debug bool) *ZapLogger

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(msg string, args ...interface{})

func (*ZapLogger) Error

func (l *ZapLogger) Error(msg string, args ...interface{})

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(msg string, args ...interface{})

func (*ZapLogger) Info

func (l *ZapLogger) Info(msg string, args ...interface{})

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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