Summary
SerilogBuilder.
Implements the
ConventionBuilder<TBuilder, TConvention, TDelegate>
Implements the ISerilogBuilder
Implements the ISerilogConventionContext
- Assembly
- Rocket
.Surgery .Extensions .Serilog .dll - Namespace
- Rocket
.Surgery .Extensions .Serilog - Interfaces
- Base Types
graph BT
Type-->Base0["ConventionBuilder<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>"]
Base0-->Base1["ConventionContainerBuilder<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>"]
Base1-->Base2["Object"]
Type-.->Interface0["ISerilogBuilder"]
click Interface0 "/api/Rocket.Surgery.Extensions.Serilog/ISerilogBuilder"
Type-.->Interface1["IConventionBuilder<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>"]
Type-.->Interface2["IConventionContainer<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>"]
Type-.->Interface3["ISerilogConventionContext"]
click Interface3 "/api/Rocket.Surgery.Extensions.Serilog/ISerilogConventionContext"
Type-.->Interface4["IConventionContext"]
click Interface4 "/api/Rocket.Surgery.Conventions/IConventionContext"
Type["SerilogBuilder"]
class Type type-node
Syntax
public class SerilogBuilder :
ConventionBuilder<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>,
ISerilogBuilder,
IConventionBuilder<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>,
IConventionContainer<ISerilogBuilder, ISerilogConvention, SerilogConventionDelegate>,
ISerilogConventionContext, IConventionContext
Attributes
Type | Description |
---|---|
Nullable |
|
NullableAttribute |
Constructors
Name | Summary |
---|---|
SerilogBuilder |
Initializes a new instance of the SerilogBuilder class.
|
Properties
Name | Value | Summary |
---|---|---|
Configuration | IConfiguration |
Gets the configuration.
|
Environment | IRocketEnvironment |
The environment that this convention is running
Based on IHostEnvironment / IHostingEnvironment
|
Logger | ILogger |
A logger that is configured to work with each convention item
|
LoggerConfiguration | LoggerConfiguration |
Gets the logger configuration.
|
Methods
Name | Value | Summary |
---|---|---|
Build |
ILogger |
Builds this instance.
|
Configure |
LoggerConfiguration |
Builds this instance.
|
Extension Methods
Name | Value | Summary |
---|---|---|
SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|