There seems to be some confusion here.
Jetty Logging
Jetty Logging refers to the server side logging, not webapp.
While it's possible to use from a webapp, its actually easier to use a formal logging library (like slf4j, logback, log4j, java.util.logging, etc)
logs/yyyy_mm_dd.request.log
The files ...
... are request logs, aka NCSA access logging.
These are not related to server logging, and do not use the Server logging framework.
jetty-logging.properties location
The file jetty-logging.properties can exist as a resource that the classloader can access.
>From the server classloader point of view, that file is accessed from
${jetty.base}/resources/jetty-logging.properties
From a webapp classloader point of view, that file is accessed from your
${jetty.base}/webapps/<appname>.war!/WEB-INF/classes/jetty-logging.properties
It is strongly discouraged to change the logging behavior of the Jetty Logging infrastructure from within a webapp, as it can make changes to the server side as well.
We would encourage you to setup a some formal logging library in your webapp (having more then 1 logging library in your webapp is extremely common btw)
jetty-logging.properties configuration
The first line in the jetty-logging.properties dictates the logging technique to use.
org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog
The StdErrLog is the default behavior, and will produce logging events to STDERR (aka System Error. like System.err.println("hello"))
This produces no log files, it only shows up on the console on the STDERR streams.
Console Capture
If you configure for logging on Jetty 9.4.x you'll see a module called "console-capture".
That simply takes whatever is being written to the console, on either STDOUT (System out) or STDERR (System error) and redirects it to a file with rolling.
Jetty Server Logging Configuration
You can configure Jetty server logging to use something other then StdErrLog + Console Capture.
Two very common techniques:
- java.util.logging - configure org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog
- slf4j + logback - configure org.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.Slf4jLog