Documentation ¶
Index ¶
- func AddFields(ctx context.Context, fields map[string]interface{}) context.Context
- func Init(debug bool)
- func NewContext(ctx context.Context, fields map[string]interface{}) context.Context
- func With(ctx context.Context) *logrus.Entry
- func WithFields(ctx context.Context, fields map[string]interface{}) *logrus.Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFields ¶
AddFields merges new fields with context logger's fields, and update new logger into context if ctx is nil, it is same with WithFields().
func NewContext ¶
NewContext returns new log entry, if context has old entry, it will be overwrite
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.