Share via


Logging Information from the Application (Visual Basic)

This section contains topics that cover how to log information from your application using the My.Application.Log or My.Log object, and how to extend the application's logging capabilities.

The Log object provides methods for writing information to the application's log listeners, and the Log object's advanced TraceSource property provides detailed configuration information. The Log object is configured by the application's configuration file.

The My.Log object is available only for ASP.NET applications. For client applications, use My.Application.Log. For more information, see Log.

Tasks

To

See

Write event information to the application's logs.

How to: Write Log Messages (Visual Basic)

Write exception information to the application's logs.

How to: Log Exceptions in Visual Basic

Write trace information to the application's logs when the application starts and shuts down.

How to: Log Messages When the Application Starts or Shuts Down (Visual Basic)

Configure My.Application.Log to write information to a text file.

How to: Write Event Information to a Text File (Visual Basic)

Configure My.Application.Log to write information to an event log.

How to: Write to an Application Event Log (Visual Basic)

Change where My.Application.Log writes information.

Walkthrough: Changing Where My.Application.Log Writes Information (Visual Basic)

Determine where My.Application.Log writes information.

Walkthrough: Determining Where My.Application.Log Writes Information (Visual Basic)

Create a custom log listener for My.Application.Log.

Walkthrough: Creating Custom Log Listeners (Visual Basic)

Filter the output of the My.Application.Log logs.

Walkthrough: Filtering My.Application.Log Output (Visual Basic)

See Also

Tasks

Troubleshooting: Log Listeners (Visual Basic)

Reference

Microsoft.VisualBasic.Logging.Log

Concepts

Working with Application Logs in Visual Basic