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

859 LogstashEncoder should throw IllegalArgumentException instead of logging an error status when attempting to use <providers> #861

Conversation

brenuart
Copy link
Collaborator

@brenuart brenuart commented Sep 23, 2022

Make LogstashEncoder/Layout throw an IllegalArgumentException when an attempt is made to use the <providers> configuration property.
Also add a few words in the documentation about how to register additional JsonProvider to a LogstashEncoder.

@brenuart brenuart changed the title 859 logstashencoder should throw IllegalArgumentException instead of logging an error status when attempting to add extra encoders 859 LogstashEncoder should throw IllegalArgumentException instead of logging an error status when attempting to use <providers> Sep 23, 2022
@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Merging #861 (1c27d4e) into main (589cf00) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##               main     #861      +/-   ##
============================================
- Coverage     71.24%   71.23%   -0.01%     
- Complexity     1283     1284       +1     
============================================
  Files           170      170              
  Lines          4865     4867       +2     
  Branches        508      508              
============================================
+ Hits           3466     3467       +1     
- Misses         1146     1147       +1     
  Partials        253      253              
Impacted Files Coverage Δ
...va/net/logstash/logback/layout/LogstashLayout.java 0.00% <0.00%> (ø)
.../net/logstash/logback/encoder/LogstashEncoder.java 56.06% <100.00%> (+0.67%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@brenuart brenuart merged commit 7d5e69a into main Sep 23, 2022
@brenuart brenuart deleted the 859-logstashencoder-should-throw-illegalstateexception-instead-of-logging-an-error-status-when-attempting-to-add-extra-encoders branch September 23, 2022 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants