Joutsen Logging v0.5.0+26-g72240ac
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Joutsen.Logging.Configuration.LoggerService Class Reference

A class offering extension methods to service collections to add logging for use with the dependency injection framework. More...

Static Public Member Functions

static IServiceCollection AddJoutsenLogging (this IServiceCollection services, IConfiguration configuration=null)
 Adds logging from a configuration to the services of an application.
 

Detailed Description

A class offering extension methods to service collections to add logging for use with the dependency injection framework.

Since
0.5.0

Member Function Documentation

◆ AddJoutsenLogging()

static IServiceCollection Joutsen.Logging.Configuration.LoggerService.AddJoutsenLogging ( this IServiceCollection  services,
IConfiguration  configuration = null 
)
static

Adds logging from a configuration to the services of an application.

Parameters
servicesthe serves to add logging to
configurationthe optional configuration to use. If not provided the configuration out of the services is used.
Remarks
Adds the LoggingConfig, LoggingFactory and the default Logger to the services for use with the dependency injection framework