Skip to content

Commit 6e77680

Browse files
authored
Add indentation to the code snippet for docs (#160)
Currently the code snippet is not rendered correctly because of the indentation: https://hexdocs.pm/logger_json/7.0.3/LoggerJSON.Formatter.html#c:new/1 <img width="888" alt="Screenshot 2025-05-23 at 21 54 45" src="https://github.com/user-attachments/assets/6447ecdf-fc97-4921-8d8a-15ae22f8600f" />
1 parent a043679 commit 6e77680

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/logger_json/formatter.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ defmodule LoggerJSON.Formatter do
2323
the first element is the module implementing `LoggerJSON.Formatter`,
2424
and the second is the options passed to `new/1`. For example:
2525
26-
config :logger, :default_handler,
27-
formatter: {LoggerJSON.Formatters.Basic, metadata: [:request_id]}
26+
config :logger, :default_handler,
27+
formatter: {LoggerJSON.Formatters.Basic, metadata: [:request_id]}
2828
2929
Note that tuple‑based configs are resolved for each log entry,
3030
which can increase logging overhead.

0 commit comments

Comments
 (0)