Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Log.TraceSource Property

Definition

Namespace:
Microsoft.VisualBasic.Logging
Assembly:
Microsoft.VisualBasic.dll
Assembly:
Microsoft.VisualBasic.Forms.dll
Source:
Log.vb
Source:
Log.vb
Source:
Log.vb
Source:
Log.vb
Source:
Log.vb

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets to the TraceSource object that underlies the Log object.

public:
 property System::Diagnostics::TraceSource ^ TraceSource { System::Diagnostics::TraceSource ^ get(); };
public System.Diagnostics.TraceSource TraceSource { get; }
member this.TraceSource : System.Diagnostics.TraceSource
Public ReadOnly Property TraceSource As TraceSource

Property Value

The TraceSource object that underlies the Log object.

Remarks

You can use this property to determine the current configuration of the Log object.

In client applications, the Log object is available through the My.Application.Log object. In Web applications, the Log object is available through the My.Log object.

This is an advanced member; it does not show in IntelliSense unless you select the All tab.

The following table lists an example of a task involving the TraceSource property.

To See
Get information for each of the Log object's log listeners. Troubleshooting: Log Listeners

Availability by Project Type

Project type Available
Windows Application Yes
Class Library Yes
Console Application Yes
Windows Control Library Yes
Web Control Library No
Windows Service Yes
Web Site Yes

Applies to

See also


Feedback

Was this page helpful?