Method ConfigureLogger
ConfigureLogger(ILoggerFactory, String, String, Microsoft.Extensions.Logging.LogLevel)
Configures logging for Entity Framework Core provider. By default, the logs are created in NCache's log directory unless specified.
Declaration
public static void ConfigureLogger(ILoggerFactory factory = null, string categoryName = null, string path = null, Microsoft.Extensions.Logging.LogLevel logLevel = null)
Parameters
Type | Name | Description |
---|---|---|
ILoggerFactory | factory | The custom logger factory that will provide the log-levels. |
System.String | categoryName | Specifies the category name of the logger. |
System.String | path | Corresponds to the custom path where a user wants to create the logs, it can be null. |
Microsoft.Extensions.Logging.LogLevel | logLevel | Specifies the level of the event that is to be logged. |