|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Provides a property and methods for writing event and exception information to the application's log listeners.
The My.Application.Log object provides a straightforward entry point from which to access the .NET Framework's logging services. The WriteEntry and WriteException methods write messages to the application's log listeners. The listeners can be configured by the application's configuration file. For more information, seeand .
The My.Application.Log object is available only for client applications. For Web applications, use My.Log. For more information, see.
This example shows how to use the My.Application.Log.WriteEntry method to log tracing information. For more information, see.