From bfd0343ee9d32abe5e7c5cf6ba51e459c6d7f0c8 Mon Sep 17 00:00:00 2001 From: Ruslan Semagin <53819609+pixel365@users.noreply.github.com> Date: Mon, 3 Jun 2024 12:27:45 +0300 Subject: [PATCH] feat: change the description and links in the 'log/slog' node (#5798) * change the description and links in the 'log/slog' node --------- Co-authored-by: dsh --- .../golang/content/105-go-logging/102-log-slog.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/data/roadmaps/golang/content/105-go-logging/102-log-slog.md b/src/data/roadmaps/golang/content/105-go-logging/102-log-slog.md index 2623222d1..b64a006fd 100644 --- a/src/data/roadmaps/golang/content/105-go-logging/102-log-slog.md +++ b/src/data/roadmaps/golang/content/105-go-logging/102-log-slog.md @@ -1,5 +1,10 @@ # log/slog -The `log` package is the standard logging package in Go. It provides a simple logging API that can be used to log messages to the console or to a file. +The `log` and `log/slog` (since go 1.21) packages are the standard logging packages in Go. These packages provides a simple logging API that can be used to log messages to the console or to a file. -Learn more about the `log` package in the [official documentation](https://pkg.go.dev/log). \ No newline at end of file +Visit the following resources to learn more: + +- [Official Documentation: log](https://pkg.go.dev/log) +- [Official Documentation: log/slog](https://pkg.go.dev/log/slog) `(since go 1.21)` +- [Go Blog: Structured Logging with slog](https://go.dev/blog/slog) +- [Go by Example: Logging](https://gobyexample.com/logging)