Skip to content

Commit

Permalink
Cleanup references to NewWith
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Rozynek committed Feb 15, 2021
1 parent fac3949 commit 63a3716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defer m.Log()

Customizing the logger:
```
emf.NewWith(
emf.New(
emf.WithWriter(os.Stderr), // Log to stderr.
emf.WithTimestamp(time.Now().Add(-time.Hour)), // Record past metrics.
)
Expand Down
2 changes: 1 addition & 1 deletion emf/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func WithTimestamp(t time.Time) LoggerOption {
// New creates logger with reasonable defaults for Lambda functions:
// - Prints to os.Stdout.
// - Context based on Lambda environment variables.
// - Timestamp set to the time when NewWith was called.
// - Timestamp set to the time when New was called.
// Specify LoggerOptions to customize the logger.
func New(opts ...LoggerOption) *Logger {
values := make(map[string]interface{})
Expand Down

0 comments on commit 63a3716

Please sign in to comment.