logger

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string, err error, tags ...zap.Field)

Error is a function to be used to log an error.

func Info

func Info(msg string, tags ...zap.Field)

Info is a function to be used to log an information.

Types

type APILogger

type APILogger interface {
	Print(v ...interface{})
	Printf(format string, v ...interface{})
}

APILogger is the interface to process the calls to logger.

func GetLogger

func GetLogger() APILogger

GetLogger is the getter for apiLogger interface.

Jump to

Keyboard shortcuts

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