Skip to content

Commit 62831e8

Browse files
Update LoggerJSON.Plug doc (#92)
1 parent 9ca7542 commit 62831e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ It's [available on Hex](https://hex.pm/packages/logger_json), the package can be
193193
plug LoggerJSON.Plug
194194
```
195195

196+
`LoggerJSON.Plug` is configured by default to use `LoggerJSON.Plug.MetadataFormatters.GoogleCloudLogger`.
197+
You can replace it with the `:metadata_formatter` config option.
198+
196199
5. Optionally. Use Ecto telemetry for additional metadata:
197200

198201
Attach telemetry handler for Ecto events in `start/2` function in `application.ex`

lib/logger_json/plug.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if Code.ensure_loaded?(Plug) do
2222
2323
### Available metadata formatters
2424
25+
* `LoggerJSON.Plug.MetadataFormatters.DatadogLogger` see module for logged structure;
2526
* `LoggerJSON.Plug.MetadataFormatters.GoogleCloudLogger` leverages GCP LogEntry format;
2627
* `LoggerJSON.Plug.MetadataFormatters.ELK` see module for logged structure.
2728

0 commit comments

Comments
 (0)