logger

package
v0.0.0-...-a10145e Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = initializeLogger()

A global instance of our zaplog with custom encoding configs

View Source
var RequestIdCtxKey = &ContextKey{echo.HeaderXRequestID}

The Key ID for the Request ID provided from a http request

Functions

func Debug

func Debug(c context.Context, message string, args ...interface{})

func Error

func Error(c context.Context, message string, args ...interface{})

func Info

func Info(c context.Context, message string, args ...interface{})

func SetLogger

func SetLogger(logger *zap.SugaredLogger) *zap.SugaredLogger

Sets a sugared logger to the current global logger instance

Types

type ContextKey

type ContextKey struct {
	Name string
}

Key struct to hold the value for Key ID

Jump to

Keyboard shortcuts

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