Skip to content

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented May 19, 2022

📜 Description

Improve jul sample for easier debugging inside IDE

💡 Motivation and Context

This way it's easier to start from IDE in debugging mode. Code before didn't use logging.properties in that case and handler also wasn't used when starting from IDE.

Also replaced logback dependency with slf4j to get access to MDC.

💚 How did you test it?

locally

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

🔮 Next steps

#skip-changelog

@adinauer
Copy link
Member Author

No changelog need here i guess, correct?


public static void main(String[] args) {
public static void main(String[] args) throws Exception {
LogManager.getLogManager()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there should be a comment that this is made only for the purpose of running it from an IDE.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment for an alternative way of providing the logging.properties file.

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (6.x.x@3f10556). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             6.x.x    #2058   +/-   ##
========================================
  Coverage         ?   80.87%           
  Complexity       ?     3176           
========================================
  Files            ?      228           
  Lines            ?    11736           
  Branches         ?     1576           
========================================
  Hits             ?     9492           
  Misses           ?     1655           
  Partials         ?      589           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f10556...80f80ef. Read the comment docs.

@adinauer adinauer merged commit 191ca19 into 6.x.x May 19, 2022
@adinauer adinauer deleted the feat/improve-jul-sample branch May 19, 2022 12:28
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.

4 participants