DatabaseLogger Constructors

Definition

Overloads

DatabaseLogger()

Creates a new logger that will send log output to the console.

DatabaseLogger(String)

Creates a new logger that will send log output to a file. If the file already exists then it is overwritten.

DatabaseLogger(String, Boolean)

Creates a new logger that will send log output to a file.

DatabaseLogger()

Creates a new logger that will send log output to the console.

public DatabaseLogger ();
Public Sub New ()

Applies to

DatabaseLogger(String)

Creates a new logger that will send log output to a file. If the file already exists then it is overwritten.

public DatabaseLogger (string path);
new System.Data.Entity.Infrastructure.Interception.DatabaseLogger : string -> System.Data.Entity.Infrastructure.Interception.DatabaseLogger
Public Sub New (path As String)

Parameters

path
String

A path to the file to which log output will be written.

Applies to

DatabaseLogger(String, Boolean)

Creates a new logger that will send log output to a file.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
public DatabaseLogger (string path, bool append);
new System.Data.Entity.Infrastructure.Interception.DatabaseLogger : string * bool -> System.Data.Entity.Infrastructure.Interception.DatabaseLogger
Public Sub New (path As String, append As Boolean)

Parameters

path
String

A path to the file to which log output will be written.

append
Boolean

True to append data to the file if it exists; false to overwrite the file.

Attributes

Applies to