common

package
v0.0.0-...-835e501 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package common provides some useful functions and objects that may be used across all the components implemented in this project One example is the default logger

Index

Constants

This section is empty.

Variables

Functions

func ConfigGlobalLogger

func ConfigGlobalLogger(cfg LogCfg)

func NewLogger

func NewLogger(cfg LogCfg) *zap.SugaredLogger

Types

type LogCfg

type LogCfg int
const (
	Dbg LogCfg = iota
	Prod
)

Jump to

Keyboard shortcuts

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