logger

package
v0.0.0-...-ea047a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KLogger

type KLogger interface {
	WithContext() *zap.SugaredLogger
	WithTracing(ctx context.Context) *zap.SugaredLogger
}

KLogger is an interface for the Kyma wide logger.

type Logger

type Logger struct {
	*logger.Logger
}

func New

func New(format, level string) (*Logger, error)

New returns a new Kyma standardized Logger with the given format and level. This method needs to return Logger in favor of KLogger until the whole codebase is migrated to the new interface.

Jump to

Keyboard shortcuts

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