-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### Proposed Changes Issue #23631 * Add global log4j2 configuration * default log4j2.configurationFile set in tomcat setenv.sh * default Log4jContextSelector=org.apache.logging.log4j.core.async.BasicAsyncLoggerContextSelector * This provides a single context and is not based on the classloader * created lib folder for logging jars and added to tomcat classpath * moved redis session manager jars into their own folder * Normalized maven dependencies to help with debugging and versions centrally specified in bom * Removed log4j reloading functionality As well as using a common configuration for tomcat and webapp logs. This also resolves an inconsistency when The logging class is referenced in code before the ContextLifecycleListener is called. Previously the wrong configuration contained in the resources classpath of the ant-tooling jar was picked up initially. Tests * Test tomcat log messages are output to the same location * Test any issues with logging from plugins * Test ability to override log4j config and change log levels for core tomcat classes, webapp classes and plugin classes. currently can map to /srv/OVERRIDE/WEB-INF/log4j in container or update CATALINA_OPTS to include -Dlog4j2.configurationFile={path to file} * Test session manager functionality is not broken * Will need a review of the logging behavior from cloud engineering when this image is applied into our cloud environment including any log-level changes they may want to have by default ### Further changes There is follow up work to this PR that improves the way that the config can be specified and overridden. This change maintains the existing config file behavior but just applies it across the entire application. ### Checklist - [ ] Tests - [ ] Translations - [ ] Security Implications Contemplated (add notes if applicable) ### Additional Info This PR resolves #23631 (create global log4j config). ### Screenshots Original | Updated :-------------------------:|:-------------------------: ** original screenshot ** | ** updated screenshot **
- Loading branch information
Showing
14 changed files
with
190 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.