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

Objc-c new logging api implementation #3349

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

pasin
Copy link
Contributor

@pasin pasin commented Dec 17, 2024

  • Implemented the logic to init CBLLogSinks.
  • Implemented the logic to setup each log sink.
  • Implemented a minium locking with a note comment in the CBLLogSinks implementation.
  • Changed the old logging API to use the new log sink API.
  • No tests for the new logging API implemented.
  • No guard for using both old and new API implemented.
  • PR validation can't be run when having a PR to non release branch or main branch for some reason.

* Implemented the logic to init CBLLogSinks.
* Implemented the logic to setup each log sink.
* Implemented a minium locking with a note comment in the CBLLogSinks implementation.
* Changed the old logging API to use the new log sink API.
@pasin pasin changed the title Update new logging api implementation Objc-c new logging api implementation Dec 17, 2024
@pasin pasin requested a review from velicuvlad December 17, 2024 02:27
@velicuvlad
Copy link
Contributor

velicuvlad commented Dec 17, 2024

yes, PR validation is only set for master/release. It needs modification into the yaml to run for every branch - there is no way to enable it on-fly.

I've tested locally and everything is fine.

I looked around today on how to handle the situation of old/new api use. Apple doesn't provide any "intelligent" way to do this and as far as I've skim around for ways to do such thing, I will move forward with a similar solution of what you've done for C.

I will merge this now as I already started making changes on local on top. I do have a question that I will take with you offline - it is concept related.

@velicuvlad velicuvlad merged commit d87e6e9 into feature/logging Dec 17, 2024
0 of 2 checks passed
@velicuvlad velicuvlad deleted the feature/update_logging_api_impl branch December 17, 2024 16:01
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