Documentation
¶
Index ¶
- func SetFormatter(formatter logrus.Formatter)
- func SetGlobal()
- func SetIDKey(key string)
- func SetLevel(level logrus.Level)
- func SetOutput(out io.Writer)
- type Config
- type Entry
- func (e *Entry) Debug(args ...interface{})
- func (e *Entry) Debugf(format string, args ...interface{})
- func (e *Entry) Debugln(args ...interface{})
- func (e *Entry) Error(args ...interface{})
- func (e *Entry) Errorf(format string, args ...interface{})
- func (e *Entry) Errorln(args ...interface{})
- func (e *Entry) Fatal(args ...interface{})
- func (e *Entry) Fatalf(format string, args ...interface{})
- func (e *Entry) Fatalln(args ...interface{})
- func (e *Entry) Info(args ...interface{})
- func (e *Entry) Infof(format string, args ...interface{})
- func (e *Entry) Infoln(args ...interface{})
- func (e *Entry) Log(level logrus.Level, args ...interface{})
- func (e *Entry) Logf(level logrus.Level, format string, args ...interface{})
- func (e *Entry) Logln(level logrus.Level, args ...interface{})
- func (e *Entry) OnError(err error) *Entry
- func (e *Entry) Panic(args ...interface{})
- func (e *Entry) Panicf(format string, args ...interface{})
- func (e *Entry) Panicln(args ...interface{})
- func (e *Entry) SetFields(fields ...interface{}) *Entry
- func (e *Entry) Trace(args ...interface{})
- func (e *Entry) Tracef(format string, args ...interface{})
- func (e *Entry) Traceln(args ...interface{})
- func (e *Entry) Warn(args ...interface{})
- func (e *Entry) Warnf(format string, args ...interface{})
- func (e *Entry) Warning(args ...interface{})
- func (e *Entry) Warningf(format string, args ...interface{})
- func (e *Entry) Warningln(args ...interface{})
- func (e *Entry) Warnln(args ...interface{})
- func (e *Entry) WithError(err error) *Entry
- func (e *Entry) WithField(key string, value interface{}) *Entry
- func (e *Entry) WithFields(fields logrus.Fields) *Entry
- func (e *Entry) WithTime(t time.Time) *Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFormatter ¶
Types ¶
type Config ¶ added in v0.0.1
type Config struct {
Level string `json:"level"`
Formatter formatter `json:"formatter"`
LocalLogger bool `json:"localLogger"`
}
func (*Config) UnmarshalJSON ¶ added in v0.0.2
func (*Config) UnmarshalYAML ¶ added in v0.0.2
type Entry ¶
func LogWithFields
deprecated
func WithFields ¶ added in v0.1.0
func WithFields(fields ...interface{}) *Entry
WithFields creates a new entry without an id and the given fields
Click to show internal directories.
Click to hide internal directories.