logger

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package logger initializes and exposes the global logger client used in the service and across integrations. This is for internal purposes only. End-users only need access to the log package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContextToZapFields

func FromContextToZapFields(ctx context.Context) []zapcore.Field

FromContextToZapFields tries to extract a trace from the context to add "trace_id" and "span_id" fields to the log.

func Logger

func Logger() *zap.Logger

Logger returns the global logger client used in the service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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