Back to godoc.org

Package logger

v1.0.11
Latest Go to latest

The latest major version is .

Published: Oct 3, 2020 | License: Apache-2.0 | Module: github.com/Share-Exp/apiutils

Index

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.

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.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier