logger

package module
v0.0.0-...-f81d64f Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ServiceField    = "service"
	InstanceIDField = "instance"
	LayerField      = "layer"
)

Variables

This section is empty.

Functions

func NewProduction

func NewProduction(opts ...zap.Option) (*zap.Logger, error)

NewProduction creates production logger with provided options.

func NewWithConfig

func NewWithConfig(cfg Config, opts ...zap.Option) (*zap.Logger, error)

func WithInstanceID

func WithInstanceID(id string) zap.Field

func WithLayer

func WithLayer(layer string) zap.Field

func WithService

func WithService(service string) zap.Field

Types

type Config

type Config struct {
	Service    *string
	InstanceID *string
}

Jump to

Keyboard shortcuts

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