Skip to content

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
# Conflicts:
#	cli/pom.xml
#	cli/src/main/java/com/devonfw/tools/ide/context/AbstractIdeContext.java
@coveralls
Copy link
Collaborator

coveralls commented Mar 11, 2025

Pull Request Test Coverage Report for Build 18478663135

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 114 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.3%) to 68.146%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/log/IdeSubLoggerOut.java 1 85.29%
com/devonfw/tools/ide/context/AbstractIdeContext.java 113 63.61%
Totals Coverage Status
Change from base Build 18199220116: -0.3%
Covered Lines: 9057
Relevant Lines: 12817

💛 - Coveralls

@hohwille
Copy link
Member

Comming to the really interesting questions for the review:

  • can't we remove logback-classic now from CLI (eliminating lots of code from CLI native image)?
  • shouldn't we distinguish between our own and 3rd party loggers at least in IdeTestLogger?
  • couldn't we somehow use Marker API to express custom log-levels like success or interaction (can be handled outside this PR)?
  • should we present and test this together with the team in the next KT/Planning session?

@hohwille
Copy link
Member

shouldn't we distinguish between our own and 3rd party loggers at least in IdeTestLogger?

Ah, question was already answered by the CI build that fails:

[ERROR] Errors:
[ERROR] IdeProgressBarTest.testProgressBarDownloadWithMissingContentLength:71 » ConcurrentModification

Yes, this is required to make it work.

jan-vcapgemini and others added 4 commits May 12, 2025 22:04
# Conflicts:
#	cli/src/main/java/com/devonfw/tools/ide/context/AbstractIdeContext.java
set loggingContext to private
added getter for loggingContext
added check to ignore WireMock specific log messages
removed logback-classic from dependencies
@jan-vcapgemini jan-vcapgemini added the internal Nothing to be added to CHANGELOG, only internal story label Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request internal Nothing to be added to CHANGELOG, only internal story logging

Projects

Status: Team Review

Development

Successfully merging this pull request may close these issues.

enhance logging concept

5 participants