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

Refactor: Use 'source' variable consistently in log formatting #43659

Closed
wants to merge 1 commit into from

Conversation

minwoo1999
Copy link
Contributor

This PR refactors the format method of the SimpleFormatter class to replace multiple calls to record.getLoggerName() with the source variable. This change improves code readability and ensures consistent usage of the logger name throughout the formatting process.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 4, 2025
@philwebb
Copy link
Member

philwebb commented Jan 6, 2025

Thanks for the suggestion, but I prefer using distinct variable names so the format call is easier to follow. I've actually extracted more in commit 29e9ce1

@philwebb philwebb closed this Jan 6, 2025
@philwebb philwebb added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants