rewrote use of With() in dev-docs

This commit is contained in:
miampf 2024-01-29 13:28:31 +01:00
parent 62f2e44691
commit 747af57b25
No known key found for this signature in database
GPG key ID: 376EAC0E5307A669

View file

@ -57,7 +57,7 @@ Further we try to adhere to the following guidelines:
You should write
```Go
log.With(slog.String("address", addr), slog.Int("port", port)).Info("Starting server")
log..Info("Starting server", "addr", addr, "port", port)
```
* Use log levels to configure how detailed the logs of you application should be.