clog

package
v0.0.0-...-e2e270a Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger, _ = cfg.Build()

Functions

func Context

func Context(ctx context.Context) context.Context

func Error

func Error(ctx context.Context, err error, info *ErrInfo)

func ErrorWithLogger

func ErrorWithLogger(l *zap.Logger, err error, info *ErrInfo, fields ...zap.Field)

func Log

func Log(ctx context.Context, msg string)

func Set

func Set(ctx context.Context, f ...zap.Field)

Types

type ErrInfo

type ErrInfo struct {
	Request      *http.Request
	ResponseCode int
	Repository   string
	Revision     string
}

Jump to

Keyboard shortcuts

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