Nebo15 / logger_json

JSON logger formatter with support for Google Cloud, DataDog and other for Elixir.
https://nebo15.github.io/logger_json/
MIT License
237 stars 92 forks source link

Correct Formatter TypeSpec #112

Closed Morgahl closed 6 months ago

Morgahl commented 10 months ago

Ref: LoggerJSON.Formatter.format_event/6 callback TypeSpec.

  1. The old state parameter was a map but when changes were made for the DataDog formatter from LoggerJSON.Formatter.format_event/5 to LoggerJSON.Formatter.format_event/6 the parameter did not get updated to reflect the correct typing.
  2. md is marked as a map when this is actually a Keyword.t
AndrewDryga commented 6 months ago

Closing this because the codebase was completely rewritten this week, hope you will like the new logger :).