Class DatabaseOptionsBuilderExtensions
Providing extensions method for the DatabaseOptionsBuilder<TDatabase> class.
Namespace: Venflow.Extensions.Logging
Assembly: Venflow.Extensions.Logging.dll
Syntax
public static class DatabaseOptionsBuilderExtensions : object
Methods
| Improve this Doc View SourceUseLoggerFactory<TDatabase>(DatabaseOptionsBuilder<TDatabase>, ILoggerFactory, Boolean)
Adds a
Declaration
public static DatabaseOptionsBuilder UseLoggerFactory<TDatabase>(this DatabaseOptionsBuilder<TDatabase> options, ILoggerFactory loggerFactory, bool formatSensitiveInformation = false)
where TDatabase : Database
Parameters
Type | Name | Description |
---|---|---|
DatabaseOptionsBuilder<TDatabase> | options | The options to which the |
ILoggerFactory | loggerFactory | The |
Boolean | formatSensitiveInformation | Determines whether or not the formatter should include the parameters values. |
Returns
Type | Description |
---|---|
DatabaseOptionsBuilder | An object that can be used to configure the current Database instance. |
Type Parameters
Name | Description |
---|---|
TDatabase |
Remarks
Also consider configuring the DatabaseOptionsBuilder.DefaultLoggingBehavior property.