Share via


DefaultFileLogWriter Property (My.Application.Log and My.Log)

Gets the FileLogTraceListener object that the Log object uses.

' Usage
Dim value As Logging.FileLogTraceListener = My.Application.Log.DefaultFileLogWriter
' Web usage
Dim value As Logging.FileLogTraceListener = My.Log.DefaultFileLogWriter
' Declaration
Public ReadOnly Property DefaultFileLogWriter As Logging.FileLogTraceListener

Property Value

Returns the FileLogTraceListener object that the Log object uses.

Remarks

You can use this property to determine the current configuration of the Log object's FileLogTraceListener 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.

Requirements

Namespace:Microsoft.VisualBasic.Logging

Class:Log

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

Permissions

The following permission may be necessary:

Permission

Description

FileIOPermission

Controls the ability to access files and folders. Associated enumeration: Unrestricted.

For more information, see Code Access Security and Requesting Permissions.

See Also

Tasks

Troubleshooting: Log Listeners

Reference

My.Application.Log Object

My.Log Object

FileLogTraceListener