File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
lib/logger_json/formatters Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ defmodule LoggerJSON.Formatters.Basic do
26
26
conn] a
27
27
28
28
@ impl Formatter
29
- def new ( opts ) do
29
+ def new ( opts \\ [ ] ) do
30
30
opts = Keyword . new ( opts )
31
31
encoder_opts = Keyword . get_lazy ( opts , :encoder_opts , & Formatter . default_encoder_opts / 0 )
32
32
metadata_keys_or_selector = Keyword . get ( opts , :metadata , [ ] )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ defmodule LoggerJSON.Formatters.Datadog do
51
51
@ processed_metadata_keys ~w[ pid file line mfa conn] a
52
52
53
53
@ impl Formatter
54
- def new ( opts ) do
54
+ def new ( opts \\ [ ] ) do
55
55
opts = Keyword . new ( opts )
56
56
encoder_opts = Keyword . get_lazy ( opts , :encoder_opts , & Formatter . default_encoder_opts / 0 )
57
57
redactors = Keyword . get ( opts , :redactors , [ ] )
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ defmodule LoggerJSON.Formatters.Elastic do
144
144
conn] a
145
145
146
146
@ impl Formatter
147
- def new ( opts ) do
147
+ def new ( opts \\ [ ] ) do
148
148
opts = Keyword . new ( opts )
149
149
encoder_opts = Keyword . get_lazy ( opts , :encoder_opts , & Formatter . default_encoder_opts / 0 )
150
150
metadata_keys_or_selector = Keyword . get ( opts , :metadata , [ ] )
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ defmodule LoggerJSON.Formatters.GoogleCloud do
109
109
@ default_levels_reported_as_errors ~w[ emergency alert critical error] a
110
110
111
111
@ impl Formatter
112
- def new ( opts ) do
112
+ def new ( opts \\ [ ] ) do
113
113
opts = Keyword . new ( opts )
114
114
encoder_opts = Keyword . get_lazy ( opts , :encoder_opts , & Formatter . default_encoder_opts / 0 )
115
115
redactors = Keyword . get ( opts , :redactors , [ ] )
You can’t perform that action at this time.
0 commit comments