LegacyOrleansLoggingFactoryExtensions.AddLegacyOrleansLogging 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AddLegacyOrleansLogging(ILoggingBuilder, IEnumerable<ILogConsumer>, IPEndPoint, EventBulkingOptions)
向 LoggerFactory 添加 LegacyOrleansLoggerProvider 事件大容量功能
public static Microsoft.Extensions.Logging.ILoggingBuilder AddLegacyOrleansLogging(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Collections.Generic.IEnumerable<Orleans.Runtime.ILogConsumer> logConsumers, System.Net.IPEndPoint ipEndPoint = default, Orleans.Logging.Legacy.EventBulkingOptions eventBulkingOptions = default);
static member AddLegacyOrleansLogging : Microsoft.Extensions.Logging.ILoggingBuilder * seq<Orleans.Runtime.ILogConsumer> * System.Net.IPEndPoint * Orleans.Logging.Legacy.EventBulkingOptions -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddLegacyOrleansLogging (builder As ILoggingBuilder, logConsumers As IEnumerable(Of ILogConsumer), Optional ipEndPoint As IPEndPoint = Nothing, Optional eventBulkingOptions As EventBulkingOptions = Nothing) As ILoggingBuilder
参数
- builder
- ILoggingBuilder
记录器生成器
- logConsumers
- IEnumerable<ILogConsumer>
要向其写入日志事件的日志使用者
- ipEndPoint
- IPEndPoint
此记录器与此记录器关联的 IP 终结点
- eventBulkingOptions
- EventBulkingOptions
事件大容量处理功能的配置
返回
适用于
AddLegacyOrleansLogging(ILoggingBuilder, IEnumerable<ILogConsumer>, OrleansLoggerSeverityOverrides, IPEndPoint, EventBulkingOptions)
向 LoggerFactory 添加 LegacyOrleansLoggerProvider 事件大容量功能
public static Microsoft.Extensions.Logging.ILoggingBuilder AddLegacyOrleansLogging(this Microsoft.Extensions.Logging.ILoggingBuilder builder, System.Collections.Generic.IEnumerable<Orleans.Runtime.ILogConsumer> logConsumers, Orleans.Logging.Legacy.OrleansLoggerSeverityOverrides severityOverrides, System.Net.IPEndPoint ipEndPoint = default, Orleans.Logging.Legacy.EventBulkingOptions eventBulkingOptions = default);
static member AddLegacyOrleansLogging : Microsoft.Extensions.Logging.ILoggingBuilder * seq<Orleans.Runtime.ILogConsumer> * Orleans.Logging.Legacy.OrleansLoggerSeverityOverrides * System.Net.IPEndPoint * Orleans.Logging.Legacy.EventBulkingOptions -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddLegacyOrleansLogging (builder As ILoggingBuilder, logConsumers As IEnumerable(Of ILogConsumer), severityOverrides As OrleansLoggerSeverityOverrides, Optional ipEndPoint As IPEndPoint = Nothing, Optional eventBulkingOptions As EventBulkingOptions = Nothing) As ILoggingBuilder
参数
- builder
- ILoggingBuilder
记录器生成器
- logConsumers
- IEnumerable<ILogConsumer>
配置为使用日志的日志使用者
- severityOverrides
- OrleansLoggerSeverityOverrides
按类别严重性替代
- ipEndPoint
- IPEndPoint
此记录器与此记录器关联的 IP 终结点
- eventBulkingOptions
- EventBulkingOptions
事件大容量处理功能的配置