Method | Description | |
---|---|---|
DatabaseLogger ( ) : System.Data.Entity.Infrastructure.DependencyResolution |
Creates a new logger that will send log output to the console.
|
|
DatabaseLogger ( string path ) : System.Data.Entity.Infrastructure.DependencyResolution |
Creates a new logger that will send log output to a file. If the file already exists then it is overwritten.
|
|
Dispose ( ) : void |
Stops logging and closes the underlying file if output is being written to a file.
|
|
StartLogging ( ) : void |
Starts logging. This method is a no-op if logging is already started.
|
|
StopLogging ( ) : void |
Stops logging. This method is a no-op if logging is not started.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Stops logging and closes the underlying file if output is being written to a file.
|
Method | Description | |
---|---|---|
DatabaseLogger ( string path, bool append ) : System.Data.Entity.Infrastructure.DependencyResolution | ||
IDbConfigurationInterceptor ( DbConfigurationLoadedEventArgs loadedEventArgs, System.Data.Entity.Infrastructure.Interception.DbConfigurationInterceptionContext interceptionContext ) : void | ||
StartLogging ( IDbDependencyResolver resolver ) : void | ||
WriteThreadSafe ( string value ) : void |
public DatabaseLogger ( ) : System.Data.Entity.Infrastructure.DependencyResolution | ||
return | System.Data.Entity.Infrastructure.DependencyResolution |
public DatabaseLogger ( string path ) : System.Data.Entity.Infrastructure.DependencyResolution | ||
path | string | A path to the file to which log output will be written. |
return | System.Data.Entity.Infrastructure.DependencyResolution |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | /// True to release both managed and unmanaged resources; False to release only unmanaged resources. /// |
return | void |