logger

package
v0.0.0-...-10def5d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeEncoder

func TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

Types

type Configuration

type Configuration struct {
	LogLevel string
}

type LoggerInterface

type LoggerInterface interface {
	Info(args ...interface{})
	InfoF(s string, args ...interface{})
	Error(args ...interface{})
	ErrorF(s string, args ...interface{})
	Warn(args ...interface{})
	WarnF(s string, args ...interface{})
}

func NewZapLogger

func NewZapLogger(config Configuration) (LoggerInterface, error)

Jump to

Keyboard shortcuts

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