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

feat: KLogContext #5

Merged
merged 59 commits into from
Jul 31, 2023
Merged

feat: KLogContext #5

merged 59 commits into from
Jul 31, 2023

Conversation

buenaflor
Copy link
Owner

@buenaflor buenaflor commented Jul 22, 2023

Add KLogContext to the shared code.

Classes that were not included in this PR

  • MessageParser
  • TemplateContext
  • Tags
  • DurationLimiter

They are tagged as TODO otherwise they will blow up this PR as they also depend on other classes that need to be commonized as well. I will open PRs for those later

buenaflor and others added 30 commits June 11, 2023 04:39
@buenaflor buenaflor marked this pull request as ready for review July 22, 2023 16:58
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
public actual typealias KLogContext<LOGGER, API> = LogContext<LOGGER, API>

@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")

Choose a reason for hiding this comment

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

What error is this suppressing? Which member is missing? Could you include a comment about why this needs to be suppressed as well

Copy link
Owner Author

@buenaflor buenaflor Jul 31, 2023

Choose a reason for hiding this comment

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

The first suppress is for 'errors' regarding the protected visibility: https://youtrack.jetbrains.com/issue/KT-19848
The second suppress is for companion objects - java statics vs companion object is marked as an error.

Both will work if you suppress them

@buenaflor buenaflor merged commit b5962e7 into main Jul 31, 2023
3 checks passed
@buenaflor buenaflor deleted the feat/logcontext branch July 31, 2023 22:08
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.

2 participants