Rediger

Del via


AspLog Constructors

Definition

Initializes a new instance of the AspLog class.

Overloads

AspLog()

Initializes a new instance of the AspLog class.

AspLog(String)

Initializes a new instance of the AspLog class.

AspLog()

Initializes a new instance of the AspLog class.

public:
 AspLog();
public AspLog ();
Public Sub New ()

Remarks

The My.Log object provides a straightforward entry point from which to access the .NET Framework's logging services. The WriteEntry and WriteException methods write messages to the application's log listeners. The listeners can be configured by the application's configuration file. For more information, see Walkthrough: Changing Where My.Application.Log Writes Information and Working with Application Logs.

See also

Applies to

AspLog(String)

Initializes a new instance of the AspLog class.

public:
 AspLog(System::String ^ name);
public AspLog (string name);
new Microsoft.VisualBasic.Logging.AspLog : string -> Microsoft.VisualBasic.Logging.AspLog
Public Sub New (name As String)

Parameters

name
String

String. The name to give to the TraceSource property object.

Remarks

The My.Log object provides a straightforward entry point from which to access the .NET Framework's logging services. The WriteEntry and WriteException methods write messages to the application's log listeners. The listeners can be configured by the application's configuration file. For more information, see Walkthrough: Changing Where My.Application.Log Writes Information and Working with Application Logs.

See also

Applies to