Serilog.Settings.Configuration
Extends with support for System.Configuration appSettings elements.
Configuration section name required by this package.
Reads logger settings from the provided configuration object using the provided section name. Generally this
is preferable over the other method that takes a configuration section. Only this version will populate
IConfiguration parameters on target methods.
Logger setting configuration.
A configuration object which contains a Serilog section.
A section name for section which contains a Serilog section.
The dependency context from which sink/enricher packages can be located. If not supplied, the platform
default will be used.
An object allowing configuration to continue.
Reads logger settings from the provided configuration object using the default section name. Generally this
is preferable over the other method that takes a configuration section. Only this version will populate
IConfiguration parameters on target methods.
Logger setting configuration.
A configuration object which contains a Serilog section.
The dependency context from which sink/enricher packages can be located. If not supplied, the platform
default will be used.
An object allowing configuration to continue.
Reads logger settings from the provided configuration section. Generally it is preferable to use the other
extension method that takes the full configuration object.
Logger setting configuration.
The Serilog configuration section
The dependency context from which sink/enricher packages can be located. If not supplied, the platform
default will be used.
An object allowing configuration to continue.
Reads logger settings from the provided configuration object using the provided section name. Generally this
is preferable over the other method that takes a configuration section. Only this version will populate
IConfiguration parameters on target methods.
Logger setting configuration.
A configuration object which contains a Serilog section.
A section name for section which contains a Serilog section.
Defines how the package identifies assemblies to scan for sinks and other types.
An object allowing configuration to continue.
Reads logger settings from the provided configuration object using the default section name. Generally this
is preferable over the other method that takes a configuration section. Only this version will populate
IConfiguration parameters on target methods.
Logger setting configuration.
A configuration object which contains a Serilog section.
Defines how the package identifies assemblies to scan for sinks and other types.
An object allowing configuration to continue.
Reads logger settings from the provided configuration section. Generally it is preferable to use the other
extension method that takes the full configuration object.
Logger setting configuration.
The Serilog configuration section
Defines how the package identifies assemblies to scan for sinks and other types.
An object allowing configuration to continue.
Reads logger settings from the provided configuration object using the provided section name.
Logger setting configuration.
A configuration object which contains a Serilog section.
A section name for section which contains a Serilog section.
A collection of assemblies that contains sinks and other types.
An object allowing configuration to continue.
Reads logger settings from the provided configuration object using the default section name.
Logger setting configuration.
A configuration object which contains a Serilog section.
A collection of assemblies that contains sinks and other types.
An object allowing configuration to continue.
Reads logger settings from the provided configuration object using the specified context.
Logger setting configuration.
A configuration object which contains a Serilog section.
Options to adjust how the configuration object is processed.
An object allowing configuration to continue.
Defines how the package will identify the assemblies which are scanned for sinks and other Type information.
Try to scan the assemblies already in memory. This is the default. If GetEntryAssembly is null, fallback to DLL scanning.
Scan for assemblies in DLLs from the working directory. This is the fallback when GetEntryAssembly is null.
Options to adjust how the configuration object is processed.
Initialize a new instance of the class.
A collection of assemblies that contains sinks and other types.
The argument is null.
The argument is empty.
Initialize a new instance of the class.
Prefer the constructor taking explicit assemblies: . It's the only one supporting single-file publishing.
Initialize a new instance of the class.
The dependency context from which sink/enricher packages can be located. If , the platform default will be used.
Prefer the constructor taking explicit assemblies: . It's the only one supporting single-file publishing.
Initialize a new instance of the class.
Defines how the package identifies assemblies to scan for sinks and other types.
Prefer the constructor taking explicit assemblies: . It's the only one supporting single-file publishing.
The section name for section which contains a Serilog section. Defaults to Serilog.
The used when converting strings to other object types. Defaults to the invariant culture.
Allows to use internal types for extension methods for sink configuration. Defaults to .
Allows to use internal extension methods for sink configuration. Defaults to .
Called when a log level switch is created while reading the configuration.
Log level switches are created either from the Serilog:LevelSwitches section (declared switches) or the Serilog:MinimumLevel:Override section (minimum level override switches).
- For declared switches, the switch name includes the leading $ character.
- For minimum level override switches, the switch name is the (partial) namespace or type name of the override.
Called when a log filter switch is created while reading the Serilog:FilterSwitches section of the configuration.
A log event filter that can be modified at runtime.
Under the hood, the logging filter switch is either a Serilog.Expressions.LoggingFilterSwitch or a Serilog.Filters.Expressions.LoggingFilterSwitch instance.
A filter expression against which log events will be tested.
Only expressions that evaluate to true are included by the filter. A null expression will accept all events.
Keeps track of available elements that are useful when resolving values in the settings system.
Looks up a switch in the declared LoggingLevelSwitches
the name of a switch to look up
the LoggingLevelSwitch registered with the name
if no switch has been registered with
Contains "fake extension" methods for the Serilog configuration API.
By default the settings know how to find extension methods, but some configuration
are actually "regular" method calls and would not be found otherwise.
This static class contains internal methods that can be used instead.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that null is disallowed as an input even if the corresponding type allows it.
Applied to a method that will never return under any circumstance.
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes the attribute with the specified parameter value.
The condition parameter value. Code after the method will be considered unreachable
by diagnostics if the argument to the associated parameter matches this value.
Gets the condition parameter value.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter may be null.
Gets the return value condition.
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Initializes the attribute with a field or property member.
The field or property member that is promised to be not-null.
Initializes the attribute with the list of field and property members.
The list of field and property members that are promised to be not-null.
Gets field or property member names.
Specifies that the method or property will ensure that the listed field and property
members have not-null values when returning with the specified return value condition.
Initializes the attribute with the specified return value condition and a field or property member.
The return value condition. If the method returns this value, the associated parameter will not be null.
The field or property member that is promised to be not-null.
Initializes the attribute with the specified return value condition and list of field and property members.
The return value condition. If the method returns this value, the associated parameter will not be null.
The list of field and property members that are promised to be not-null.
Gets the return value condition.
Gets field or property member names.
Specifies that an output will not be null even if the corresponding type allows it.
Specifies that an input argument was not null when the call returns.
Specifies that the output will be non-null if the named parameter is non-null.
Initializes the attribute with the associated parameter name.
The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
Gets the associated parameter name.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that this constructor sets all required members for the current type,
and callers do not need to set any required members themselves.
Specifies the syntax used in a string.
Initializes the with the identifier of the syntax used.
The syntax identifier.
Initializes the with the identifier of the syntax used.
The syntax identifier.
Optional arguments associated with the specific syntax employed.
Gets the identifier of the syntax used.
Optional arguments associated with the specific syntax employed.
The syntax identifier for strings containing composite formats for string formatting.
The syntax identifier for strings containing date format specifiers.
The syntax identifier for strings containing date and time format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing JavaScript Object Notation (JSON).
The syntax identifier for strings containing numeric format specifiers.
The syntax identifier for strings containing regular expressions.
The syntax identifier for strings containing time format specifiers.
The syntax identifier for strings containing format specifiers.
The syntax identifier for strings containing URIs.
The syntax identifier for strings containing XML.
Used to indicate a byref escapes and is not scoped.
There are several cases where the C# compiler treats a as implicitly
- where the compiler does not allow the to escape the method.
For example:
- for instance methods.
- parameters that refer to types.
- parameters.
This attribute is used in those instances where the should be allowed to escape.
Applying this attribute, in any form, has impact on consumers of the applicable API. It is necessary for
API authors to understand the lifetime implications of applying this attribute and how it may impact their users.
Represent a type can be used to index a collection either from the start or the end.
Index is used by the C# compiler to support the new index syntax
int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ;
int lastElement = someArray[^1]; // lastElement = 5
Construct an Index using a value and indicating if the index is from the start or from the end.
The index value. it has to be zero or positive number.
Indicating if the index is from the start or from the end.
If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element.
Create an Index pointing at first element.
Create an Index pointing at beyond last element.
Create an Index from the start at the position indicated by the value.
The index value from the start.
Create an Index from the end at the position indicated by the value.
The index value from the end.
Returns the index value.
Indicates whether the index is from the start or the end.
Calculate the offset from the start using the giving collection length.
The length of the collection that the Index will be used with. length has to be a positive value
For performance reason, we don't validate the input length parameter and the returned offset value against negative values.
we don't validate either the returned offset is greater than the input length.
It is expected Index will be used with collections which always have non negative length/count. If the returned offset is negative and
then used to index a collection will get out of range exception which will be same affect as the validation.
Indicates whether the current Index object is equal to another object of the same type.
An object to compare with this object
Indicates whether the current Index object is equal to another Index object.
An object to compare with this object
Returns the hash code for this instance.
Converts integer number to an Index.
Converts the value of the current Index object to its equivalent string representation.
Represent a range has start and end indexes.
Range is used by the C# compiler to support the range syntax.
int[] someArray = new int[5] { 1, 2, 3, 4, 5 };
int[] subArray1 = someArray[0..2]; // { 1, 2 }
int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 }
Represent the inclusive start index of the Range.
Represent the exclusive end index of the Range.
Construct a Range object using the start and end indexes.
Represent the inclusive start index of the range.
Represent the exclusive end index of the range.
Indicates whether the current Range object is equal to another object of the same type.
An object to compare with this object
Indicates whether the current Range object is equal to another Range object.
An object to compare with this object
Returns the hash code for this instance.
Converts the value of the current Range object to its equivalent string representation.
Create a Range object starting from start index to the end of the collection.
Create a Range object starting from first element in the collection to the end Index.
Create a Range object starting from first element to the end.
Calculate the start offset and length of range object using a collection length.
The length of the collection that the range will be used with. length has to be a positive value.
For performance reason, we don't validate the input length parameter against negative values.
It is expected Range will be used with collections which always have non negative length/count.
We validate the range is inside the length scope though.
An attribute that allows parameters to receive the expression of other parameters.
Initializes a new instance of the class.
The condition parameter value.
Gets the parameter name the expression is retrieved from.
Indicates that compiler support for a particular feature is required for the location where this attribute is applied.
Creates a new instance of the type.
The name of the feature to indicate.
The name of the compiler feature.
If true, the compiler can choose to allow access to the location where this attribute is applied if it does not understand .
The used for the ref structs C# feature.
The used for the required members C# feature.
Indicates which arguments to a method involving an interpolated string handler should be passed to that handler.
Initializes a new instance of the class.
The name of the argument that should be passed to the handler.
may be used as the name of the receiver in an instance method.
Initializes a new instance of the class.
The names of the arguments that should be passed to the handler.
may be used as the name of the receiver in an instance method.
Gets the names of the arguments that should be passed to the handler.
may be used as the name of the receiver in an instance method.
Indicates the attributed type is to be used as an interpolated string handler.
Reserved to be used by the compiler for tracking metadata.
This class should not be used by developers in source code.
Used to indicate to the compiler that a method should be called
in its containing module's initializer.
When one or more valid methods
with this attribute are found in a compilation, the compiler will
emit a module initializer which calls each of the attributed methods.
Certain requirements are imposed on any method targeted with this attribute:
- The method must be `static`.
- The method must be an ordinary member method, as opposed to a property accessor, constructor, local function, etc.
- The method must be parameterless.
- The method must return `void`.
- The method must not be generic or be contained in a generic type.
- The method's effective accessibility must be `internal` or `public`.
The specification for module initializers in the .NET runtime can be found here:
https://github.com/dotnet/runtime/blob/main/docs/design/specs/Ecma-335-Augments.md#module-initializer
Specifies that a type has required members or that a member is required.
Used to indicate to the compiler that the .locals init flag should not be set in method headers.
Initializes a new instance of the class.
Initializes a new instance of the class with the specified message.
An optional message associated with this attribute instance.
Returns the optional message associated with this attribute instance.
Returns the optional URL associated with this attribute instance.