File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ defer m.Log()
39
39
40
40
Customizing the logger:
41
41
```
42
- emf.NewWith (
42
+ emf.New (
43
43
emf.WithWriter(os.Stderr), // Log to stderr.
44
44
emf.WithTimestamp(time.Now().Add(-time.Hour)), // Record past metrics.
45
45
)
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func WithTimestamp(t time.Time) LoggerOption {
44
44
// New creates logger with reasonable defaults for Lambda functions:
45
45
// - Prints to os.Stdout.
46
46
// - 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.
48
48
// Specify LoggerOptions to customize the logger.
49
49
func New (opts ... LoggerOption ) * Logger {
50
50
values := make (map [string ]interface {})
You can’t perform that action at this time.
0 commit comments