logger

package
v0.0.0-...-adc3592 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func Default

func Default() Logger

Create a simple stdout logger.

func New

func New(w io.Writer) Logger

Create a new logger to stdout.

func (*Logger) HTTP

func (l *Logger) HTTP(op string, r *http.Request)

Log on HTTP operation.

func (*Logger) Operation

func (l *Logger) Operation(op string, args ...string)

Log one operation.

Jump to

Keyboard shortcuts

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