SerilogJoint
Classsealednet10.0
A joint that applies the Serilog joints and registers the Serilog logger they configure: the logger, Serilog's
ILogger and the ILoggerFactory (which backs every ILogger<T> ) take the place of the logging providers the host adds by default. This joint is automatically registered by the Dovetail generator, so it is not necessary to register this joint manually. namespace Joinery.Dovetail.Serilog;
public sealed class SerilogJoint : Joinery.Dovetail.Infrastructure.IDovetailJoint, Joinery.Dovetail.Joints.IServiceAsyncJoint{ // ...}IDovetailJointIServiceAsyncJoint
Remarks
Section titled Remarks Once every Serilog joint has run, the minimum level and the level overrides in the
Serilog:MinimumLevel section of the application's configuration are applied (sinks and enrichers are configured by the Serilog joints) and, when the logger is first resolved, the IConfigureOptions<LoggerConfiguration> and IPostConfigureOptions<LoggerConfiguration> registered in the services are applied to the logger configuration. The logger writes every event to the other ILoggerProvider s of the container as well (OpenTelemetry's, say), except Serilog's own and the default providers it replaces.