Categorygithub.com/sonirico/logrus-vertical-formatter
modulepackage
0.1.0
Repository: https://github.com/sonirico/logrus-vertical-formatter.git
Documentation: pkg.go.dev

# README

Vertical formatter for logrus logger

Example


func main() {
	log := logrus.New()
	log.SetLevel(logrus.DebugLevel)
	log.SetFormatter(
		logrusverticalformatter.New(
			logrusverticalformatter.WithPadRight(" ", 40),
		),
	)

	logger := log.WithField("service", "orders")

	logger.Infoln("order placed successfully")
}


Output

ts                                      2023-04-26 00:01:43.559701525 +0200 CEST m=+0.000046735
service                                 orders
message                                 order placed successfully
____________________________________________________________________________________________________


# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author