logger

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NowFunc = time.Now

NowFunc is a function used in testing instead of time.Now

Functions

func WriteAccessLog added in v0.2.3

func WriteAccessLog(ctx context.Context, r http.Request, status, responseSize int, elapsed time.Duration)

WriteAccessLog writes a access log to stderr

func WriteApplicationLog added in v0.2.3

func WriteApplicationLog(ctx context.Context, s severity.Severity, format string, a ...interface{})

WriteApplicationLog writes a application log to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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