Nebo15 / logger_json

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

Correct Formatter TypeSpec #112

Closed Morgahl closed 7 months ago

Morgahl commented 11 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 7 months ago

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