logger

package
v0.0.0-...-d9b5379 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(msg string, args ...any)

func Errorf

func Errorf(msg string, args ...any)

func Fatalf

func Fatalf(msg string, args ...any)

func Infof

func Infof(msg string, args ...any)

func Init

func Init(svc string)

Init logger for a service There are two type of logging config:

  1. Service specific
  2. Common config

Common config helps in logging consistency across all services in an environment

func Warnf

func Warnf(msg string, args ...any)

func With

func With(args map[string]any) *zap.SugaredLogger

func WithError

func WithError(err error) *zap.SugaredLogger

func WithRequestID

func WithRequestID(id string) *zap.SugaredLogger

Types

This section is empty.

Jump to

Keyboard shortcuts

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