Class AmbientServicesSerilogExtensions
Extension methods for the IAmbientServices.
Inheritance
System.Object
AmbientServicesSerilogExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Logging.Serilog
Assembly: Kephas.Logging.Serilog.dll
Syntax
public static class AmbientServicesSerilogExtensions
Methods
| Improve this Doc View SourceWithSerilogManager(IAmbientServices, LoggerConfiguration)
Sets the Serilog log manager to the ambient services.
Declaration
public static IAmbientServices WithSerilogManager(this IAmbientServices ambientServices, LoggerConfiguration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
IAmbientServices | ambientServices | The ambient services builder. |
Serilog.LoggerConfiguration | configuration | Optional. The logger configuration. |
Returns
Type | Description |
---|---|
IAmbientServices | The provided ambient services builder. |