Export (0) Print
Expand All

Log.TraceSource Property

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)

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft