Skip to content

Commit

Permalink
Merge pull request #290 from shogo82148/fix-goaslog-package-comment
Browse files Browse the repository at this point in the history
Fix package comment
  • Loading branch information
shogo82148 committed Feb 21, 2024
2 parents 8fd03a5 + a8b9e86 commit a406ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logging/slog/adapter.go
Expand Up @@ -6,9 +6,9 @@ Package goaslog contains an adapter that makes it possible to configure goa so i
as logger backend.
Usage:
logger := logrus.New()
// Initialize logger handler using logrus package
service.WithLogger(goaslog.New(logger))
handler := slog.NewJSONHandler(os.Stderr, nil)
// Initialize logger handler using [log/slog] package
service.WithLogger(goaslog.New(handler))
// ... Proceed with configuring and starting the goa service
// In handlers:
Expand Down

0 comments on commit a406ca2

Please sign in to comment.