Log.TraceSource Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets to the TraceSource object that underlies the Log object.

Namespace:   Microsoft.VisualBasic.Logging
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public TraceSource TraceSource { get; }

Property Value

Type: System.Diagnostics.TraceSource

Returns the TraceSource object that underlies the Log object.

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 (Visual Basic)

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

.NET Framework
Available since 2.0
Return to top
Show: