Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface { WithFields(fields Fields) Entry WithField(name string, value interface{}) Entry Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) }
Entry describes the interface for the logger entry.
type Logger ¶
type Logger interface { SubLogger(fields Fields) Logger WithFields(fields Fields) Entry WithField(name string, value interface{}) Entry WithError(err error) Entry Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) }
Logger describes the interface that must be implemeted by all loggers.
func NewLoggerWithLogrus ¶
NewLoggerWithLogrus creates a new logger which wraps the given logrus.Logger
func NewLoggerWithLumberjack ¶
type Lumberjack ¶
type Lumberjack struct {
// contains filtered or unexported fields
}
func (*Lumberjack) Levels ¶
func (hook *Lumberjack) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.