How to Properly Log Things in Go (Native) – STOP using fmt.Println()



How to Properly Log Things in Go (Native) – STOP using fmt.Println()

How to Properly Log Things in Go (Native) - STOP using fmt.Println()

How to Properly Log Things in Go (log package)
Today’s video is about using package log to log program information. Logging is essential in any programs, so check out this video so you can stop using fmt.Println() for litterally anything 😉


Golang Dojo is all about becoming Golang Ninjas together. You can expect all kinds of Golang tutorials, news, tips & tricks, and my daily struggles as a Golang developer. Make sure to subscribe if you look forward to such content!

Get Your Golang Cheat Sheet! – https://golangdojo.com/cheatsheet
Git repos & notes – https://golangdojo.com/resources

Golang Basics – https://www.youtube.com/watch?v=VTJ8qnBevcs&list=PLve39GJ2D71xX0Ham0WoPaYfl8oTzZfN6
Golang Explained – https://www.youtube.com/watch?v=7isCXLWPTqI&list=PLve39GJ2D71wKL33k5eZ6Frot74mhiCxz


Timestamps
0:00 Intro
0:52 Why not fmt?
1:42 Basics
4:03 Log file
5:23 Info, warning & error loggers
7:32 Aggregated logger
9:15 Outro


#golang #goprogramming #golangdojo

Comments are closed.