Skip to content

Comments

#404: enhance logging with custom slf4j bridge#1017

Closed
jan-vcapgemini wants to merge 62 commits intodevonfw:mainfrom
jan-vcapgemini:enhance/404-logging-concept
Closed

#404: enhance logging with custom slf4j bridge#1017
jan-vcapgemini wants to merge 62 commits intodevonfw:mainfrom
jan-vcapgemini:enhance/404-logging-concept

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
@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
@hohwille
Copy link
Member

Thanks for this PR 👍
I took over this PR and replaced it by PR #1710.

@hohwille hohwille closed this Feb 19, 2026
@github-project-automation github-project-automation bot moved this from Team Review to ✅ Done in IDEasy board Feb 19, 2026
@hohwille hohwille added this to the internal milestone Feb 19, 2026
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 IDEasy specific logging (levels, messages, etc.)

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

enhance logging concept

5 participants