1

I'm deploying a Java8 standard environment and I cannot change the logging level, or turn off logs for org.eclipse.jetty.*.

I have tried:

  • Creating a jetty-logging.properties file in src/main/resources and configuring it via that file
  • Setting a JETTY_ARGS variable in my app-engine.xml file:

    <env-var name="JETTY_ARGS" value="-Djava.util.logging.config.file=WEB-INF/logging.properties" /> 
  • Just using the java.util.logging logging.properties file in google app engine and setting: org.eclipse.jetty.LEVEL= WARN

I'm not too sure how to get rid of logs like the following in my GAE logging:

org.eclipse.jetty.client.http.HttpSenderOverHTTP sendContent: Generated content (0 bytes) - DONE/HttpGenerator@23c0fcd1{s=END} (HttpSenderOverHTTP.java:83) 

What is the correct way to do this?

3
  • Can you set up your own Jetty logger that does 'nothing'? As mentioned in here Commented Sep 24, 2018 at 8:02
  • I think I could if I used the app engine flex environment, but would prefer to just control everything in my logging.properties file. Also don't plan on leaving the standard environment if I can help it. Commented Sep 24, 2018 at 14:11
  • I could be wrong though. I'd have to see how much access I have to the jetty implementation underneath, but again, would prefer not to have to mess with it at that level Commented Sep 24, 2018 at 14:17

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.