-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Improve configuration error handling of HttpAppender
#3011
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
Comments
@ppkarwasz
|
What you want to test is the behavior of the The builder needs to test that the required properties ( HttpAppender.newBuilder()
.setName("HTTP")
.setUrl(new URL("https://localhost"))
.build(); returns Lines 195 to 211 in 6e3f2e2
|
I did write the test cases but i am facing a weird problem, my HttpAppenderBuilderTest.java is not able to find the required dependencies is there some xml file or something that i have to write? HttpAppenderBuilderTest.java is not even able to find the dependencies present in the HttpAppenderTest.java. Almost none of the import statements are working. Could you pleasae guide me with what i could possibly do to fix this |
@Suvrat1629, I presume you mean you cannot build and/or run tests in your IDE. If you use IntelliJ IDEA, install everything first (i.e. |
@vy |
Uh oh!
There was an error while loading. Please reload this page.
As reported in this SO question if the
HTTP
appender does not have a configured layout, it fails with an NPE.The correct behavior should be:
ERROR
,null
.The text was updated successfully, but these errors were encountered: