SerilogLog
is an adapter that wraps an arbitrary instance of Serilog's ILogger
and implements Vostok log interface. It enables gradual migration for Serilog users by allowing existing code to be ported to Vostok ILog
abstraction without immediately changing and reconfiguring underlying implementation.ForContext
method works exactly like it does in native implementations: it causes returned log instances to enrich incoming log events with SourceContext
property containing a hierarchical context value. See source context section for more details.VostokSink
is an implementation of Serilog's ILogEventSink
interface based on an arbitrary Vostok ILog
instance.