logger

package
v0.0.0-...-f737b9d Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Infof(message string, args ...any)
	Errorf(message string, args ...any)
	Warnf(message string, args ...any)
	Fatalf(message string, args ...any)

	Logger(name string) Logger
}

func NewTestZapLogger

func NewTestZapLogger() Logger

func NewZapLogger

func NewZapLogger(name string) Logger

type TestZapLogger

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

func (TestZapLogger) Errorf

func (l TestZapLogger) Errorf(message string, args ...any)

func (TestZapLogger) Fatalf

func (l TestZapLogger) Fatalf(message string, args ...any)

func (TestZapLogger) Infof

func (l TestZapLogger) Infof(message string, args ...any)

func (TestZapLogger) Logger

func (l TestZapLogger) Logger(name string) Logger

func (TestZapLogger) Warnf

func (l TestZapLogger) Warnf(message string, args ...any)

Jump to

Keyboard shortcuts

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