globallogger

package
v0.0.0-...-431bcb6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EnvDevelopment = "SRC_DEVELOPMENT"
)

Functions

func DevMode

func DevMode() bool

func Get

func Get(safe bool) *zap.Logger

Get retrieves the initialized global logger, or panics otherwise (unless safe is true, in which case a no-op logger is returned)

func Init

func Init(r otelfields.Resource, development bool, sinks []zapcore.Core) func() error

Init initializes the global logger once. Subsequent calls are no-op. Returns the callback to sync the root core.

func IsInitialized

func IsInitialized() bool

IsInitialized indicates if the global logger is initialized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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