log

package
v0.0.0-...-4c3f66c Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Critical severity = iota
	Error
	Warning
	Info
	Debug
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppEngineLogger

type AppEngineLogger struct{}

AppEngineLogger is logger output log to appengine logging.

func (*AppEngineLogger) Log

func (a *AppEngineLogger) Log(ctx context.Context, svr severity, format string, args ...interface{})

Log outputs log to appengine logging.

type Logger

type Logger interface {
	Log(ctx context.Context, svr severity, format string, args ...interface{})
}

Logger is interface output log.

var DefaultLogger Logger

DefaultLogger is default logger.

type StackdriverLogging

type StackdriverLogging struct{}

StackdriverLogging is logger output log to stackdriver.

type StdLogger

type StdLogger struct{}

StdLogger is logger output log to stdout.

func (*StdLogger) Log

func (s *StdLogger) Log(ctx context.Context, svr severity, format string, args ...interface{})

Log outputs log to stdout.

Jump to

Keyboard shortcuts

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