logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, keyValues ...interface{})

func Error

func Error(message string, keyValues ...interface{})

func Info

func Info(message string, keyValues ...interface{})

func InitDefaultLogger

func InitDefaultLogger(logType LogType, logLevel LogLevel)

func Warn

func Warn(message string, keyValues ...interface{})

Types

type LogLevel

type LogLevel int
const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarn
	LogLevelError
)

type LogType

type LogType int
const (
	LogTypeZap LogType = iota
	LogTypeConsole
)

Jump to

Keyboard shortcuts

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