- Update Akka.Hosting to 1.5.25
- implicitly convert regular
BusLogger
toSerilogLoggingAdapter
whenForContext
is called
As of Akka.Logger.Serilog v1.5.25, you can now do the following:
var log = Context.GetLogger()
.ForContext("Address", "No. 4 Privet Drive")
.ForContext("Town", "Little Whinging")
.ForContext("County", "Surrey")
.ForContext("Country", "England");
log.Info("My boss makes me use {Semantic} logging", "semantic");
And it will work without having to explicitly call Context.GetLogger<SerilogLoggingAdapter>()
first.