ramanathan1504 opened a new pull request, #4072:
URL: https://github.com/apache/logging-log4j2/pull/4072

   # PR Notes: RollingFile `createOnDemand` validation
   
   ## Scope
   - Module tested: `spring-boot-test` only
   - `core-java-test` and `log4j2-web-test` left unchanged
   
   ## What was run
   - Local dependency check confirmed `2.26.0-SNAPSHOT` artifacts resolved from 
`~/.m2`
   - Startup timing probes from `SpringBootTestApp#printLogPathState` used as 
source of truth
   
   ## Results (`2.26.0-SNAPSHOT`)
   ### `createOnDemand="true"` (default `log4j2.xml`)
   - `main-entry`: `dir=false app.log=false app-json.log=false`
   - `after LogManager.getLogger`: `dir=false app.log=false app-json.log=false`
   - `after first log event`: `dir=true app.log=true app-json.log=true`
   
   **Conclusion:** directory and files are created on first log event (expected 
on-demand behavior).
   
   ### `createOnDemand="false"` (`log4j2-createOnDemand-false.xml`)
   - `main-entry`: `dir=false app.log=false app-json.log=false`
   - `after LogManager.getLogger`: `dir=true app.log=true app-json.log=true`
   - `after first log event`: `dir=true app.log=true app-json.log=true`
   
   **Conclusion:** eager creation occurs before first log event (expected 
non-demand behavior).
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to