-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Akka.Event: expose the EventStream
on BusLogging
for extensibility purposes
#7210
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API approvals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API approvals
Added akkadotnet/Akka.Logger.Serilog#285 as a proof of concept |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
close #7209
The idea behind this feature is to make it possible to implement akkadotnet/Akka.Logger.Serilog#284 - automatically add
Context
to anILoggingAdapter
by just callingForContext
without having to explicitly request aSerilogLoggingAdapter
first. All that's needed to make this work is to make some of the internal data members of theBugLogging
member public and read-onlyChecklist
For significant changes, please ensure that the following have been completed (delete if not relevant):
EventStream
onBusLogging
for extensibility purposes #7209