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

Akka.Event: expose the EventStream on BusLogging for extensibility purposes #7210

Merged
merged 5 commits into from
May 31, 2024

Conversation

Aaronontheweb
Copy link
Member

@Aaronontheweb Aaronontheweb commented May 28, 2024

Changes

close #7209

The idea behind this feature is to make it possible to implement akkadotnet/Akka.Logger.Serilog#284 - automatically add Context to an ILoggingAdapter by just calling ForContext without having to explicitly request a SerilogLoggingAdapter first. All that's needed to make this work is to make some of the internal data members of the BugLogging member public and read-only

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

Copy link
Member Author

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

These changes are trivial, but detailed them anyway. Going to test these using a local build of Akka.NET to ensure that akkadotnet/Akka.Logger.Serilog#284 can be implemented successfully with this change before we merge it.

@@ -14,9 +15,22 @@ namespace Akka.Event
/// </summary>
public sealed class BusLogging : LoggingAdapterBase
{
private readonly LoggingBus _bus;
Copy link
Member Author

Choose a reason for hiding this comment

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

Made these properties public and tried to add some actually-helpful comments.

Copy link
Member Author

Choose a reason for hiding this comment

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

API approvals

Copy link
Member Author

Choose a reason for hiding this comment

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

API approvals

@Aaronontheweb
Copy link
Member Author

Added akkadotnet/Akka.Logger.Serilog#285 as a proof of concept

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

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

LGTM

@Arkatufus Arkatufus enabled auto-merge (squash) May 30, 2024 18:40
@Aaronontheweb Aaronontheweb merged commit 5956b82 into akkadotnet:dev May 31, 2024
9 of 12 checks passed
@Aaronontheweb Aaronontheweb deleted the fix-7209-BugLogging branch May 31, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Akka.Event: expose the EventStream on BusLogging for extensibility purposes
2 participants