Skip to content

Commit

Permalink
fix package comment
Browse files Browse the repository at this point in the history
  • Loading branch information
furusax0621 committed Feb 19, 2024
1 parent 8fd03a5 commit a8b9e86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logging/slog/adapter.go
Original file line number Diff line number Diff line change
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 a8b9e86

Please sign in to comment.