Skip to content

Commit

Permalink
Reference full module name in config to enable copy & paste (#143)
Browse files Browse the repository at this point in the history
The previous version would crash once you do the first log as `Basic` without aliases is an unknown module.

For setup/configuration docs I think this is better, so people can easily copy & paste it :)
  • Loading branch information
PragTob authored Nov 21, 2024
1 parent 66b7884 commit 60a5d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ config :logger, :default_handler,
or during runtime:

```elixir
:logger.update_handler_config(:default, :formatter, {Basic, %{metadata: {:all_except, [:conn]}}})
:logger.update_handler_config(:default, :formatter, {LoggerJSON.Formatters.Basic, %{metadata: {:all_except, [:conn]}}})
```

## Docs
Expand Down

0 comments on commit 60a5d48

Please sign in to comment.