readeef: github.com/urandom/readeef/log Index | Files

package log

import "github.com/urandom/readeef/log"

Index

Package Files

log.go logrus.go std.go

type Log Uses

type Log interface {
    Print(v ...interface{})
    Printf(format string, v ...interface{})
    Println(v ...interface{})

    Info(v ...interface{})
    Infof(format string, v ...interface{})
    Infoln(v ...interface{})

    Debug(v ...interface{})
    Debugf(format string, v ...interface{})
    Debugln(v ...interface{})
}

Log provides some common methods for outputting messages. It may be used to exchange the default log.Logger error logger with another provider.

func WithLogrus Uses

func WithLogrus(cfg config.Log) Log

func WithStd Uses

func WithStd(cfg config.Log) Log

WithStd creates a logger that uses the stdlib log facilities.

Package log imports 3 packages (graph) and is imported by 16 packages. Updated 2018-09-28. Refresh now. Tools for package owners.