LoggingServiceCollectionExtensions 类

定义

用于在 IServiceCollection 中设置日志记录服务的扩展方法。

public ref class LoggingServiceCollectionExtensions abstract sealed
public static class LoggingServiceCollectionExtensions
type LoggingServiceCollectionExtensions = class
Public Module LoggingServiceCollectionExtensions
继承
LoggingServiceCollectionExtensions

方法

AddLogging(IServiceCollection)

将日志记录服务添加到指定的 IServiceCollection

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

将日志记录服务添加到指定的 IServiceCollection

适用于