Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iammukeshm/structured-logging-golang-zap

Structured Logging in Golang with Zap from Uber!
https://github.com/iammukeshm/structured-logging-golang-zap

go golang logging structured-logging zap

Last synced: 22 days ago
JSON representation

Structured Logging in Golang with Zap from Uber!

Awesome Lists containing this project

README

        

# Structured Logging in Golang with Zap – Blazing Fast Logger

![Structured Logging in Golang with Zap – Blazing Fast Logger](https://codewithmukesh.com/wp-content/uploads/2022/03/Structured-Logging-in-Golang-with-Zap-Powerful-Logging.png)

In this article, we will look into Structured Logging in Golang with Zap from Uber! When it comes to product development, logging plays a vital role in identifying issues, evaluating performances, and knowing the process status within the application. Most of the time, we would expect the logger to provide us information like log level, timestamp, error message, stack trace that can pinpoint the line of the code that hits the exception, and so on. Let's see how to implement this in Golang.

## Topics Covered:
- Golang’s Default Logging Package – Explained
- Introducing Zap
- Getting Started with Structured Logging in Golang with Zap
- Logging to Console with Zap in Golang
- Logging to File with Zap in Golang
- Logging to both File and Console with ZAP in Golang

Read more: https://codewithmukesh.com/blog/structured-logging-in-golang-with-zap/