Skip to content

Commit

Permalink
docs: adhere to axiom's best practices in zerologs readme
Browse files Browse the repository at this point in the history
  • Loading branch information
418Coffee authored and lukasmalkmus committed Jan 5, 2025
1 parent 0746017 commit fd2b147
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapters/zerolog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function:
writer, err := adapter.New(
WithDatasetName("logs"),
)
l.Logger = zerolog.New(io.MultiWriter(writer, os.Stderr)).With().Str("env", os.Getenv("ENV")).Timestamp().Logger()
l.Logger = zerolog.New(io.MultiWriter(writer, os.Stderr)).With().Timestamp().Logger()
```

To configure the underlying client manually either pass in a client that was
Expand All @@ -43,7 +43,7 @@ writer, err := adapter.New()
if err != nil {
log.Fatal(err)
}
l.Logger = zerolog.New(io.MultiWriter(writer, os.Stderr)).With().Str("env", os.Getenv("ENV")).Timestamp().Logger()
l.Logger = zerolog.New(io.MultiWriter(writer, os.Stderr)).With().Timestamp().Logger()
```

> [!IMPORTANT]
Expand Down

0 comments on commit fd2b147

Please sign in to comment.