log

package
v0.0.0-...-b0ba51a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

nolint: gochecknoinits, gochecknoglobals

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContext

func NewContext(ctx context.Context, fields ...interface{}) context.Context

NewContext creates a new logger with fields.

func NewContextLog

func NewContextLog(ctx context.Context, l *zap.SugaredLogger) context.Context

NewContextLog creates a new logger context from another logger instance.

func SetLevel

func SetLevel(lvl string)

SetLevel dinamically changes the log level.

func WithContext

func WithContext(ctx context.Context) *zap.SugaredLogger

WithContext gets the existing logger from context. If not present returns the default.

Types

This section is empty.

Jump to

Keyboard shortcuts

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