Logger in Go

Recently while tinkering with Go, there was a need to write json logs to disk for ingestion to a SIEM tool. So after researching a little bit around that use case I found two really cool libraries

  1. Zap – Written by folks at Uber. Read more at https://github.com/uber-go/zap
  2. Lumberjack – It enables log rotation.

Building on top of these two libraries, I created a wrapper library called go-logger.

  1. Go Documentation for the package @ https://pkg.go.dev/github.com/fuzzmymind/go-logger
  2. GitHub @ https://github.com/fuzzmymind/go-logger

Feel free to use and contribute!

Happy coding!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s