Documentation ¶
Overview ¶
Package ilogrus implements support for using github.com/sirupsen/logrus with github.com/joeycumines/logiface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // L is a LoggerFactory, and may be used to configure a // logiface.Logger[*Event], using the implementations provided by this // package. L = LoggerFactory{} )
Functions ¶
Types ¶
type Event ¶
func (*Event) AddMessage ¶
func (*Event) AddRawJSON ¶
func (x *Event) AddRawJSON(key string, val json.RawMessage) bool
type Logger ¶
func (*Logger) ReleaseEvent ¶
type LoggerFactory ¶
type LoggerFactory struct {
// contains filtered or unexported fields
}
LoggerFactory is provided as a convenience, embedding logiface.LoggerFactory[*Event], and aliasing the option functions implemented within this package.
func (LoggerFactory) WithLogrus ¶
WithLogrus is an alias of the package function of the same name.
Click to show internal directories.
Click to hide internal directories.