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

#404: enhance logging with custom slf4j bridge #1017

Open
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

jan-vcapgemini
Copy link
Contributor

@jan-vcapgemini jan-vcapgemini commented Feb 4, 2025

Fixes: #404

Continues PR: #760 by @KianRolf

Implements:

  • refactored com.devonfw.ide.tools.url into url-updater module (kept package names)
  • updated WireMock dependency from 2.35.2 to 3.11.0
  • added jackson-core dependency to ide-cli
  • added url namespace to tools
  • added LogbackServiceProvider to url-updater service
  • added IdeLoggerAdapter (bridge class for slf4j)
  • added first implementations for IdeLoggerAdapter methods
  • adjusted github actions workflow
  • fixed compose array out of bounds exception

Kian and others added 30 commits October 2, 2024 16:17
# Conflicts:
#	cli/src/main/java/com/devonfw/tools/ide/cli/Ideasy.java
renamed TestLogger to IdeLoggerAdapter
added missing param to javadoc
renamed TestProvider to TestProviderImpl
renamed TestLoggerFactory to TestLoggerFactoryImpl
added first implementations for IdeLoggerAdapter methods
replaced IdeSubLoggerSlf4j with IdeSubLoggerOut
added null checks to IdeLoggerAdapter debug methods
added rest of null checks
jan-vcapgemini and others added 4 commits January 28, 2025 12:34
fixed compose array out of bounds exception
updated WireMock dependency from 2.35.2 to 3.11.0
added jackson-core dependency to ide-cli
added url namespace to tools
added LogbackServiceProvider to service
# Conflicts:
#	cli/src/main/java/com/devonfw/tools/ide/log/AbstractIdeSubLogger.java
@jan-vcapgemini jan-vcapgemini self-assigned this Feb 4, 2025
@jan-vcapgemini jan-vcapgemini changed the title #404: enhance logging with #404: enhance logging with custom slf4j factory Feb 4, 2025
@jan-vcapgemini jan-vcapgemini added enhancement New feature or request logging labels Feb 4, 2025
@jan-vcapgemini jan-vcapgemini changed the title #404: enhance logging with custom slf4j factory #404: enhance logging with custom slf4j bridge Feb 5, 2025
@yurii-yu
Copy link
Contributor

yurii-yu commented Feb 5, 2025

CI failed because of concurrent modification in AndroidStudioTest.checkInstallation
maybe we should first make the CI work :)

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we need to re-format the code?

Copy link
Contributor Author

@jan-vcapgemini jan-vcapgemini Feb 7, 2025

Choose a reason for hiding this comment

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

Had to enforce the reformat using CTRL+SHIFT+S.
Adjusted now.

# Conflicts:
#	cli/pom.xml
#	cli/src/main/java/com/devonfw/tools/ide/context/AbstractIdeContext.java
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 13788808942

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 328 unchanged lines in 33 files lost coverage.
  • Overall coverage decreased (-1.6%) to 66.998%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/log/IdeSubLoggerOut.java 1 85.29%
com/devonfw/tools/ide/npm/NpmJsonDist.java 1 0.0%
com/devonfw/tools/ide/npm/NpmJsonObject.java 1 0.0%
com/devonfw/tools/ide/npm/NpmJsonVersion.java 1 0.0%
com/devonfw/tools/ide/os/SystemArchitecture.java 1 50.0%
com/devonfw/tools/ide/tool/androidstudio/AndroidJsonContent.java 1 0.0%
com/devonfw/tools/ide/tool/androidstudio/AndroidJsonDownload.java 1 0.0%
com/devonfw/tools/ide/tool/androidstudio/AndroidJsonItem.java 1 0.0%
com/devonfw/tools/ide/tool/androidstudio/AndroidJsonObject.java 1 0.0%
com/devonfw/tools/ide/tool/intellij/IntellijJsonObject.java 1 0.0%
Totals Coverage Status
Change from base Build 13788010324: -1.6%
Covered Lines: 7831
Relevant Lines: 11266

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logging
Projects
Status: Team Review
Development

Successfully merging this pull request may close these issues.

enhance logging concept
5 participants