utils: github.com/orian/utils/net/log Index | Files | Directories

package log

import "github.com/orian/utils/net/log"

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


Package Files


func WithLogOverride Uses

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

func Wrap Uses

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

type LogFunc Uses

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 Uses

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



Package log imports 2 packages (graph) and is imported by 1 packages. Updated 2016-07-22. Refresh now. Tools for package owners.