log

package
v0.0.0-...-ae8e89f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTemporal

func FromTemporal(logger temporal.Logger) *zap.Logger

FromTemporal wraps a temporal logger in a compatibility layer to produce a *zap.Logger.

func New

func New() *zap.Logger

func NewDevelopment

func NewDevelopment() *zap.Logger

func NewProduction

func NewProduction() *zap.Logger

func WithPackage

func WithPackage(logger *zap.Logger) *zap.Logger

WithPackage adds a package tag to the logger, using the package name of the caller.

func WithSpan

func WithSpan(ctx context.Context, logger *zap.Logger) *zap.Logger

WithSpan adds datadog span trace id for datadog https://docs.datadoghq.com/tracing/connect_logs_and_traces/go/

Types

This section is empty.

Jump to

Keyboard shortcuts

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