logging

package
v0.0.0-...-daa393d Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: CC-BY-SA-4.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(l Logger, chain http.Handler) http.Handler

Types

type Logger

type Logger interface {
	Separator()

	Trace(vals ...interface{})

	TraceF(format string, vals ...interface{}) string

	Info(vals ...interface{})

	InfoF(format string, vals ...interface{}) string

	Err(vals ...interface{})

	ErrF(format string, vals ...interface{}) error
}

func NewLevelLogger

func NewLevelLogger(trace, isOn bool) Logger

Jump to

Keyboard shortcuts

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