Skip to content

Commit 63a3716

Browse files
author
Paweł Rozynek
committed
Cleanup references to NewWith
1 parent fac3949 commit 63a3716

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ defer m.Log()
3939

4040
Customizing the logger:
4141
```
42-
emf.NewWith(
42+
emf.New(
4343
emf.WithWriter(os.Stderr), // Log to stderr.
4444
emf.WithTimestamp(time.Now().Add(-time.Hour)), // Record past metrics.
4545
)

emf/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func WithTimestamp(t time.Time) LoggerOption {
4444
// New creates logger with reasonable defaults for Lambda functions:
4545
// - Prints to os.Stdout.
4646
// - Context based on Lambda environment variables.
47-
// - Timestamp set to the time when NewWith was called.
47+
// - Timestamp set to the time when New was called.
4848
// Specify LoggerOptions to customize the logger.
4949
func New(opts ...LoggerOption) *Logger {
5050
values := make(map[string]interface{})

0 commit comments

Comments
 (0)