logging

package
v1.45.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(ArmoryLoggerProvider),
	fx.Provide(func(log *zap.Logger) *zap.SugaredLogger {
		return log.Sugar()
	}),
	fx.WithLogger(func(logger *zap.Logger) fxevent.Logger {
		return &fxevent.ZapLogger{Logger: logger}
	}),
)

Functions

func ArmoryLoggerProvider added in v1.5.0

func ArmoryLoggerProvider(appMd metadata.ApplicationMetadata) (*zap.Logger, error)

func AwsLoggerFromZapLogger added in v1.21.0

func AwsLoggerFromZapLogger(logger *zap.SugaredLogger, prefix *string) logging.LoggerFunc

func NewArmoryDevConsoleEncoder added in v1.15.0

func NewArmoryDevConsoleEncoder(disableColor bool) zapcore.Encoder

NewArmoryDevConsoleEncoder encoder that produces colored human-readable output Not suitable for production use, see: zapcore.MapObjectEncoder comments.

func StdArmoryDevLogger added in v1.15.0

func StdArmoryDevLogger(level zapcore.Level) (*zap.Logger, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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