Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 693 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 693 Bytes

Walrus logo WaLrUs...


Walrus is a watermill log adaptor for logrus.

Usage:

// With no logger 
logger := walrus.New()

// With a specific logger
logger := walrus.NewWithLogger(logrus.StandardLogger())

// With a specific log entry
logger := walrus.NewWithLogger(logrus.StandardLogger().WithField("foo", "bar")

// Example for NATS subscriber
subscriber, err := nats.NewStreamingSubscriber(nats.StreamingSubscriberConfig{}, logger)

// Example for message router
router, err := message.NewRouter(message.RouterConfig{}, logger)