log

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 3 Imported by: 0

README

Log

A common logging interface for lalamove gokit.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(string, ...interface{})
	Info(string, ...interface{})
	Warn(string, ...interface{})
	Error(string, ...interface{})
	Fatal(string, ...interface{})
}

Logger is a generic logger interface

func Default

func Default() Logger

Default returns a default logger

func Dummy

func Dummy() Logger

Dummy returns a logger which writes nothing

func Zap

func Zap() Logger

Zap returns a zap logger

func Zero

func Zero() Logger

Zero returns a zerolog logger

Jump to

Keyboard shortcuts

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