LoggingServiceCollectionExtensions.AddLogging Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
AddLogging(IServiceCollection) |
Agrega servicios de registro a la instancia de IServiceCollection especificada. |
AddLogging(IServiceCollection, Action<ILoggingBuilder>) |
Agrega servicios de registro a la instancia de IServiceCollection especificada. |
AddLogging(IServiceCollection)
Agrega servicios de registro a la instancia de IServiceCollection especificada.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection) As IServiceCollection
Parámetros
- services
- IServiceCollection
La interfaz IServiceCollection a la que se van a agregar los servicios.
Devoluciones
La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.
Se aplica a
AddLogging(IServiceCollection, Action<ILoggingBuilder>)
Agrega servicios de registro a la instancia de IServiceCollection especificada.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddLogging(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Logging::ILoggingBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddLogging (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Logging.ILoggingBuilder> configure);
static member AddLogging : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Logging.ILoggingBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddLogging (services As IServiceCollection, configure As Action(Of ILoggingBuilder)) As IServiceCollection
Parámetros
- services
- IServiceCollection
La interfaz IServiceCollection a la que se van a agregar los servicios.
- configure
- Action<ILoggingBuilder>
El delegado de configuración de ILoggingBuilder.
Devoluciones
La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.