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

chore: move WireLogger into WireFoundation - WPB-10941 #1938

Draft
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

caldrian
Copy link
Contributor

@caldrian caldrian commented Sep 16, 2024

StoryWPB-10941 Create WireFoundation package combining WireSystem, WireUtilities and WireTesting

Issue

In order to be able to use logging from WireFoundation the Wire Logger must be declared here.
This PR moves all files except WireLoggerObjC to WireFoundation.


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@echoes-hq echoes-hq bot added the echoes: features End-user visible changes intended to create customer value label Sep 16, 2024
@caldrian caldrian changed the title chore: move WireLogger into WireFfoundation - WPB-10941 chore: move WireLogger into WireFoundation - WPB-10941 Sep 16, 2024
Copy link
Contributor

github-actions bot commented Sep 16, 2024

Test Results

3 386 tests   3 386 ✅  6m 12s ⏱️
  368 suites      0 💤
    7 files        0 ❌

Results for commit a816f9c.

♻️ This comment has been updated with latest results.

@caldrian caldrian added the WIP label Sep 16, 2024
@caldrian caldrian marked this pull request as draft September 16, 2024 19:03
@netbe netbe self-requested a review October 4, 2024 09:31
Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

added some comments, but otherwise good we should move forward on this, as it's needed on multiple packages

var mergedAttributes: LogAttributes = [:]
attributes.forEach {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why the change?

@@ -1,19 +1,19 @@
{
"originHash" : "4f1f0d62407d5ee7a355f7111a27d6e49ae5b050e52bf6cdbca00fd5d9be585e",
"originHash" : "ac941621e4353f6ea1de2917885b39a50d5770cb8bc4e76af0db2004c38b1d41",
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is it changed?

provider.addLogger(logger)
}
}
public typealias WireLogger = WireFoundation.WireLogger
Copy link
Collaborator

Choose a reason for hiding this comment

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

that might be confusing, though a good idea to have a default logger here. Does it have to be public?
maybe WireLoggerDefault?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: features End-user visible changes intended to create customer value WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants