Skip to content

Commit

Permalink
slog destination
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Dec 12, 2024
1 parent 034dde5 commit f4e4eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func New(cfg Config) (*slog.Logger, error) {
})
case FormatDev:
opts.AddSource = true
handler = devslog.NewHandler(DestinationDefault, &devslog.Options{
handler = devslog.NewHandler(cfg.Destination, &devslog.Options{
HandlerOptions: &opts,
NewLineAfterLog: true,
NoColor: !bool(cfg.Color),
Expand Down

0 comments on commit f4e4eea

Please sign in to comment.