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

Implement 101.8.4 Log Events #362

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

wilx
Copy link
Contributor

@wilx wilx commented Dec 14, 2024

While I was looking around the felix.log I noticed that the spec section "101.8.4 Log Events" is not implemented in felix.log. So implemented it. Then when I wrote the test, I found out it was actually implemented in felix.eventadmin instead as per OSGi R4. It appears the Log events spec has moved into its own chapter in later releases of the spec and all responsibility for the implementation should be in the felix.log component. Removing the adapters is necessary, otherwise in environment with both felix.log and felix.eventadmin the log events are duplicated.

These changes are on top of the tiny-fixes2 branch (#359).

@wilx wilx force-pushed the log-entries-to-events branch from efc1c24 to 3b1f2ea Compare December 18, 2024 17:12
wilx added 3 commits December 18, 2024 18:12
Log entries must be mapped into events by the Log Service
implementation and delivered asynchronously to the Event
Admin service (if present).
Having felix.eventadmin and felix.log both in runtime causes
logged events to be doubled.
@wilx wilx force-pushed the log-entries-to-events branch from 3b1f2ea to 01f8f35 Compare December 18, 2024 17:12
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.

1 participant