Skip to content
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

FISH-1509: Keep the order of lines in logging.properties file in a pre-determined order #5305

Merged
merged 1 commit into from
Jun 18, 2021
Merged

Conversation

rdebusscher
Copy link

Description

The order of the mines in the logging.properties changes 'randomly' as it based on the hash of keys used in the Properties class. This PR keeps them in a certain order according to the following patterns

handlers
handlerServices
java.util.logging.ConsoleHandler.formatter
java.util.logging.FileHandler.*
com.sun.enterprise.server\.logging.GFFileHandler.*
com.sun.enterprise.server\.logging.SyslogHandler.*
log4j.logger.org.hibernate\.validator.util.Version
com.sun.enterprise.server\.logging.UniformLogFormatter.*
fish.payara.enterprise.server\.logging.PayaraNotificationFileHandler.*
fish.payara.deprecated.jsonlogformatter.underscoreprefix
(.*)?.level

If there are multiple entries that match a pattern, they are sorted alphabetically.

Important Info

Blockers

Testing

New tests

SortedLoggingPropertiesTest to test the sorting algorithm

Testing Performed

Manual testing using the asadmin set-log-attributes command and using Web Console.

Testing Environment

Zulu 8.52.0.23-CA-macosx (build 1.8.0_282-b08) on Mac 11.2.3 with Maven 3.6.3

Documentation

No Documentation required

@rdebusscher
Copy link
Author

jenkins test please

@lprimak
Copy link
Contributor

lprimak commented Jun 18, 2021

jenkins test

@rdebusscher rdebusscher merged commit 075d0a3 into payara:master Jun 18, 2021
@rdebusscher rdebusscher deleted the FISH-1509 branch June 18, 2021 09:56
JamesHillyard pushed a commit to JamesHillyard/Payara that referenced this pull request Oct 28, 2021
FISH-1509: Keep the order of lines in logging.properties file in a pre-determined order
JamesHillyard added a commit to JamesHillyard/Payara that referenced this pull request Dec 22, 2021
JamesHillyard pushed a commit to JamesHillyard/Payara that referenced this pull request Dec 23, 2021
FISH-1509: Keep the order of lines in logging.properties file in a pre-determined order
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants