logger

package
v0.0.0-...-b09f343 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() *types.ZLEvent

Debug returns a zerolog Debug logger

func DebugReq

func DebugReq(r *http.Request) *types.ZLEvent

DebugReq returns a zerolog Debug logger from *http.Request

func Error

func Error() *types.ZLEvent

Error returns a zerolog Error logger

func ErrorReq

func ErrorReq(r *http.Request) *types.ZLEvent

ErrorReq returns a zerolog Error logger from *http.Request

func GetLogger

func GetLogger() *types.ZLog

GetLogger gets the logger instance, or configures one if nil

func Info

func Info() *types.ZLEvent

Info returns a zerolog Info logger

func InfoOrErr

func InfoOrErr(err error) *types.ZLEvent

InfoOrErr returns an info or error logger depending on err status

func InfoReq

func InfoReq(r *http.Request) *types.ZLEvent

InfoReq returns a zerolog Info logger from *http.Request

func SetDestination

func SetDestination(dest io.Writer)

SetDestination sets the output location of the logger

func SetLogger

func SetLogger(base *types.ZLog)

SetLogger sets the logger instance

func Warn

func Warn() *types.ZLEvent

Warn returns a zerolog Warn logger

func WarnReq

func WarnReq(r *http.Request) *types.ZLEvent

WarnReq returns a zerolog Warn logger from *http.Request

Types

This section is empty.

Jump to

Keyboard shortcuts

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