Documentation ¶
Index ¶
- Variables
- type Entry
- func (e *Entry) AddHook(hook Hook)
- func (e *Entry) AddLogrusHook(hook logrus.Hook)
- func (e *Entry) Debug(args ...interface{})
- func (e *Entry) Debugf(format string, args ...interface{})
- func (e *Entry) Error(args ...interface{})
- func (e *Entry) Errorf(format string, args ...interface{})
- func (e *Entry) Formatter(formatter Formatter) *Entry
- func (e *Entry) Info(args ...interface{})
- func (e *Entry) Infof(format string, args ...interface{})
- func (e *Entry) Level(level Level) *Entry
- func (e *Entry) Out(writer io.Writer) *Entry
- func (e *Entry) Panic(args ...interface{})
- func (e *Entry) Panicf(format string, args ...interface{})
- func (e *Entry) Warn(args ...interface{})
- func (e *Entry) Warnf(format string, args ...interface{})
- func (e *Entry) WithError(err error) *Entry
- func (e *Entry) WithField(key string, value interface{}) *Entry
- func (e *Entry) WithFields(fields F) *Entry
- func (e *Entry) WithRecover(recoverData interface{}) *Entry
- func (e *Entry) WithStack(err error) *Entry
- type F
- type Formatter
- type Hook
- type Level
Constants ¶
This section is empty.
Variables ¶
var ( // DEPRECATED // Use logan/v3 instead ErrorKey = logrus.ErrorKey // DEPRECATED // Use logan/v3 instead StackKey = "stack" )
var AllLevels = []Level{ PanicLevel, FatalLevel, ErrorLevel, WarnLevel, InfoLevel, DebugLevel, }
DEPRECATED: Use logan/v3 instead
Functions ¶
This section is empty.
Types ¶
type Entry ¶
DEPRECATED: Use logan/v3 instead
func (*Entry) AddLogrusHook ¶
DEPRECATED: Use logan/v3 instead
func (*Entry) Debug ¶
func (e *Entry) Debug(args ...interface{})
Debug logs a message at the debug severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Debugf ¶
Debugf logs a message at the debug severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Error ¶
func (e *Entry) Error(args ...interface{})
Error logs a message at the Error severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Errorf ¶
Errorf logs a message at the Error severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Info ¶
func (e *Entry) Info(args ...interface{})
Info logs a message at the Info severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Panic ¶
func (e *Entry) Panic(args ...interface{})
Panic logs a message at the Panic severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Panicf ¶
Panicf logs a message at the Panic severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) Warn ¶
func (e *Entry) Warn(args ...interface{})
Warn logs a message at the Warn severity.
DEPRECATED: Use logan/v3 instead
func (*Entry) WithFields ¶
DEPRECATED: Use logan/v3 instead
func (*Entry) WithRecover ¶
WithRecover creates `go-errors.Error` error from the `recoverData` and returns Entry with this error and its stack.
DEPRECATED: Use logan/v3 instead
type F ¶
type F map[string]interface{}
F type is for logging fields, used to pass to `WithFields`.
DEPRECATED: Use logan/v3 instead