Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextLogger ¶
ContextLogger is a wrapper for logrus that defines which package and function a log is written
func NewContextLogger ¶
func NewContextLogger(pkg string) ContextLogger
NewContextLogger returns a new ContextLogger for the given package
func (ContextLogger) InFunc ¶
func (c ContextLogger) InFunc(function string) ContextLogger
InFunc is a helper method to set the func field for the logger
func (ContextLogger) InStruct ¶
func (c ContextLogger) InStruct(s string) ContextLogger
Click to show internal directories.
Click to hide internal directories.