zap

package
v0.0.0-...-9dfb24e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Logger *otelzap.Logger
}

func New

func New(cfg config.Configuration) (*Logger, error)

func (*Logger) Close

func (log *Logger) Close() error

func (*Logger) Debug

func (log *Logger) Debug(msg string, fields ...field.Fields)

func (*Logger) DebugWithContext

func (log *Logger) DebugWithContext(ctx context.Context, msg string, fields ...field.Fields)

func (*Logger) Error

func (log *Logger) Error(msg string, fields ...field.Fields)

func (*Logger) ErrorWithContext

func (log *Logger) ErrorWithContext(ctx context.Context, msg string, fields ...field.Fields)

func (*Logger) Fatal

func (log *Logger) Fatal(msg string, fields ...field.Fields)

func (*Logger) FatalWithContext

func (log *Logger) FatalWithContext(ctx context.Context, msg string, fields ...field.Fields)

func (*Logger) Get

func (log *Logger) Get() any

func (*Logger) Info

func (log *Logger) Info(msg string, fields ...field.Fields)

func (*Logger) InfoWithContext

func (log *Logger) InfoWithContext(ctx context.Context, msg string, fields ...field.Fields)

func (*Logger) Warn

func (log *Logger) Warn(msg string, fields ...field.Fields)

func (*Logger) WarnWithContext

func (log *Logger) WarnWithContext(ctx context.Context, msg string, fields ...field.Fields)

Jump to

Keyboard shortcuts

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