mirror of https://github.com/sirupsen/logrus.git
32 lines
617 B
Go
32 lines
617 B
Go
package logrus
|
|
|
|
type Fields map[string]interface{}
|
|
|
|
type Level uint8
|
|
|
|
const (
|
|
Panic Level = iota
|
|
Fatal
|
|
Error
|
|
Warn
|
|
Info
|
|
Debug
|
|
)
|
|
|
|
// StandardLogger is what your logrus-enabled library should take, that way
|
|
// it'll accept a stdlib logger and a logrus logger. There's no standard
|
|
// interface, this is the closest we get, unfortunately.
|
|
type StandardLogger interface {
|
|
Print(...interface{})
|
|
Printf(string, ...interface{})
|
|
Printfln(...interface{})
|
|
|
|
Fatal(...interface{})
|
|
Fatalf(string, ...interface{})
|
|
Fatalln(...interface{})
|
|
|
|
Panic(...interface{})
|
|
Panicf(string, ...interface{})
|
|
Panicln(...interface{})
|
|
}
|