common

package
v4.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(level string, format string, a ...interface{}) string

Log logs message with a given level with no request context

func LogError

func LogError(ctx context.Context, format string, a ...interface{}) string

LogError logs error message

func LogInfo

func LogInfo(ctx context.Context, format string, a ...interface{}) string

LogInfo logs info message

func LogPanic

func LogPanic(ctx context.Context, format string, a ...interface{}) string

LogPanic logs error message

Types

type RequestIDKey

type RequestIDKey struct{}

RequestIDKey is used together with context for setting/getting X-Request-ID

Jump to

Keyboard shortcuts

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