log

package
v0.0.0-...-82af12d Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

Types

type AppEngineLogger

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

func (*AppEngineLogger) Errorf

func (ael *AppEngineLogger) Errorf(format string, args ...interface{})

func (*AppEngineLogger) Infof

func (ael *AppEngineLogger) Infof(format string, args ...interface{})

func (*AppEngineLogger) WithRequest

func (ael *AppEngineLogger) WithRequest(r *http.Request) Logger

type Logger

type Logger interface {
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	WithRequest(r *http.Request) Logger
}
var Log Logger = &StandardLogger{}

func WithRequest

func WithRequest(r *http.Request) Logger

type StandardLogger

type StandardLogger struct{}

func (*StandardLogger) Errorf

func (sl *StandardLogger) Errorf(format string, args ...interface{})

func (*StandardLogger) Infof

func (sl *StandardLogger) Infof(format string, args ...interface{})

func (*StandardLogger) WithRequest

func (sl *StandardLogger) WithRequest(r *http.Request) Logger

Jump to

Keyboard shortcuts

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