Documentation ¶
Overview ¶
Package std is the missing standard logging interface that should be present within Go. This entire package exposes a single "Logger" interface so that I don't need to pull in a huge dependency tree everytime I want to use this interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Print(...interface{}) Printf(string, ...interface{}) Println(...interface{}) Fatal(...interface{}) Fatalf(string, ...interface{}) Fatalln(...interface{}) Panic(...interface{}) Panicf(string, ...interface{}) Panicln(...interface{}) }
Logger describes a logger interface that is compatible with the standard log.Logger but also logrus and others. As not to limit which loggers can and can't be used with the API.
This interface is from https://godoc.org/github.com/Sirupsen/logrus#StdLogger
Click to show internal directories.
Click to hide internal directories.