log

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log has the same logging functions as google.golang.org/appengine/log but allows to change

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogOverride

func WithLogOverride(ctx context.Context, f LogOverrideFunc) context.Context

func Wrap

func Wrap(f func(format string, args ...interface{})) func(ctx context.Context, format string, args ...interface{})

Types

type LogFunc

type LogFunc func(ctx context.Context, format string, args ...interface{})
var (
	Debugf    LogFunc = Wrap(glog.Infof)
	Infof     LogFunc = Wrap(glog.Infof)
	Warningf  LogFunc = Wrap(glog.Warningf)
	Errorf    LogFunc = Wrap(glog.Errorf)
	Criticalf LogFunc = Wrap(glog.Fatalf)
)

type LogOverrideFunc

type LogOverrideFunc func(level int64, format string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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