Skip to content

Latest commit

 

History

History
47 lines (42 loc) · 3.64 KB

File metadata and controls

47 lines (42 loc) · 3.64 KB
title Logging Information from the Application (Visual Basic)
ms.custom
ms.date 07/20/2015
ms.prod .net
ms.reviewer
ms.suite
ms.technology
devlang-visual-basic
ms.topic article
helpviewer_keywords
Log object
My.Log object
applications [Visual Basic], logging information from
logging
My.Application.Log object
examples [Visual Basic], logging application information
ms.assetid 8bf4f047-22d6-48d6-aec5-93b98ad5b8e8
caps.latest.revision 12
author dotnet-bot
ms.author dotnetcontent

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 xref:Microsoft.VisualBasic.Logging.Log.

Tasks

To See
Write event information to the application's logs. How to: Write Log Messages
Write exception information to the application's logs. How to: Log Exceptions
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
Configure My.Application.Log to write information to a text file. How to: Write Event Information to a Text File
Configure My.Application.Log to write information to an event log. How to: Write to an Application Event Log
Change where My.Application.Log writes information. Walkthrough: Changing Where My.Application.Log Writes Information
Determine where My.Application.Log writes information. Walkthrough: Determining Where My.Application.Log Writes Information
Create a custom log listener for My.Application.Log. Walkthrough: Creating Custom Log Listeners
Filter the output of the My.Application.Log logs. Walkthrough: Filtering My.Application.Log Output

See Also

xref:Microsoft.VisualBasic.Logging.Log?displayProperty=nameWithType
Working with Application Logs
Troubleshooting: Log Listeners