logger

package
v0.0.0-...-917f730 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(template string, args ...interface{})

Debug Log

func Error

func Error(template string, args ...interface{})

Error Log

func Fatal

func Fatal(template string, args ...interface{})

Fatal Log

func Info

func Info(template string, args ...interface{})

Info Log

func SetupLogger

func SetupLogger(location string, level LogLevel)

SetupLogger - Configure logger

func Warn

func Warn(template string, args ...interface{})

Warn Log

Types

type LogLevel

type LogLevel = string

Logger type

const (
	InfoLevel  LogLevel = "info"
	WarnLevel  LogLevel = "warn"
	DebugLevel LogLevel = "debug"
	ErrorLevel LogLevel = "error"
)

type Logger

type Logger = zap.SugaredLogger

Logger type

Jump to

Keyboard shortcuts

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