Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/iammukeshm/structured-logging-golang-zap
- Owner: iammukeshm
- License: mit
- Created: 2022-03-24T18:36:21.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-27T16:10:48.000Z (almost 3 years ago)
- Last Synced: 2024-10-27T06:53:18.361Z (2 months ago)
- Topics: go, golang, logging, structured-logging, zap
- Language: Go
- Homepage: https://codewithmukesh.com/blog/structured-logging-in-golang-with-zap/
- Size: 5.86 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 GolangRead more: https://codewithmukesh.com/blog/structured-logging-in-golang-with-zap/