File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ func WithTimestamp(t time.Time) LoggerOption {
4141 }
4242}
4343
44- // NewWith creates logger with reasonable defaults for Lambda functions:
44+ // New creates logger with reasonable defaults for Lambda functions:
4545// - Prints to os.Stdout.
4646// - Context based on Lambda environment variables.
4747// - Timestamp set to the time when NewWith was called.
48- // Specify NewOptions to customize the logger.
48+ // Specify LoggerOptions to customize the logger.
4949func New (opts ... LoggerOption ) * Logger {
5050 values := make (map [string ]interface {})
5151
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ func TestNew(t *testing.T) {
4646
4747// loggersEqual returns a non-nil error if the loggers do not match.
4848// Currently it only checks that the loggers' output writer and timestamp match.
49- // TODO: expand the checks here as more NewOptions are added.
5049func loggersEqual (actual , expected * Logger ) error {
5150 if actual .out != expected .out {
5251 return fmt .Errorf ("output does not match" )
You can’t perform that action at this time.
0 commit comments