Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump logger_json from 5.1.4 to 6.0.3 #27

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 28, 2024

Bumps logger_json from 5.1.4 to 6.0.3.

Release notes

Sourced from logger_json's releases.

6.0.3

  • Improve exception structure when logged using Elastic formatter;
  • Document usage of the crash_reason metadata key across formatters.

6.0.2

Bugs

  • Do not crash when metadata is set to nil, we will assume that is an empty list instead;
  • Elastic logger did not write message and other keys when a conn was present in the metadata.

6.0.1

  • Fixed an issue where LoggerJSON will not compile in projects where Plus or Ecto are not added as a dependency

LoggerJSON is now a set of :logger formatters

This package has undergone a full rewrite and now it's just a set of Erlang's :logger formatters. This means it has a much better integration with the ecosystem and the (outdated) custom Elixir's Logger backend is removed.

The minimum supported Elixir version is now 1.15.

Notable changes

  • The logged structure for all providers has been updated to get up to date with the latest changes on those providers (eg. more metadata is logged for GoogleCloud and DataDog; Basic logs are cleaner);
  • GoogleCloud formatter now logs errors that are recognized by Google Cloud Error Reporting;
  • Now you can redact values in map/keyword/struct using a new LoggerJSON.Redactors.RedactKeys redactor;
  • Both LoggerJSON.Plug and LoggerJSON.Ecto are now attached using Telemetry (old instrumentation callbacks are removed). Please keep in mind that using them in production is discouraged as it can be very expensive to log on every single request/database query;
  • We don't use Jason.Encoder protocol for structs anymore and just encode them as any other map.
  • A formatter for ElasticSearch, LogStash, FileBeat, and Kibana is added by @​bvobart.

Upgrading from 5.X

  1. Update the package in mix.exs and then run mix deps.get:
++ {:logger_json, "~> 5.1"}
-- {:logger_json, "~> 6.0"}
  1. Replace the legacy backend configuration and configure a default handler formatter instead:
--config :logger,
--  backends: [LoggerJSON]
--
--config :logger_json, :backend,
--  metadata: {:all_except, [:conn]},
--  json_encoder: Jason,
--  formatter: LoggerJSON.Formatters.GoogleCloudLogger
++ config :logger, :default_handler,
++  formatter: {LoggerJSON.Formatters.GoogleCloud, metadata: {:all_except, [:conn]}}
  1. If you are using Phoenix then remove the old usage of LoggerJSON.Plug in your endpoint:

... (truncated)

Commits
  • ab3a4e8 Bump version
  • 7451f20 Improve docs around well known keys
  • 6b2d514 fix(elastic): better support for logging raised and caught exceptions and fix...
  • 2432081 Bump version
  • 784754f Add more comprehensive test case for Plug with DataDog formatter
  • 9cde3aa Fix issue with Elastic logger when conn is present in metadata
  • e181c26 Do not crash when metadata value is set to nil
  • 1b2baf1 Remove unused import warnings
  • 1a72c79 Do not write warnings when telemetry, Ecto or Plug are not available
  • 09f8164 Do not crash when Plug is not added to project dependencies
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [logger_json](https://github.com/Nebo15/logger_json) from 5.1.4 to 6.0.3.
- [Release notes](https://github.com/Nebo15/logger_json/releases)
- [Commits](Nebo15/logger_json@5.1.4...6.0.3)

---
updated-dependencies:
- dependency-name: logger_json
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code labels Jun 28, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 16, 2024

Superseded by #50.

@dependabot dependabot bot closed this Sep 16, 2024
@dependabot dependabot bot deleted the dependabot/hex/logger_json-6.0.3 branch September 16, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants