My.Application.Log 物件My.Application.Log Object

提供屬性和方法,以將事件和例外狀況資訊寫入至應用程式的記錄檔接聽程式。Provides a property and methods to write event and exception information to the application's log listeners.

備註Remarks

如需方法和 My.Application.Log 物件屬性的資訊,請參閱 LogFor information about the methods and properties of the My.Application.Log object, see Log.

如需詳細資訊,請參閱 < 應用程式記錄資訊For more information, see Logging Information from the Application.

注意

您也可以使用 .NET Framework 中的類別,以記錄應用程式中的資訊。You can also use classes in the .NET Framework to log information from your application. 如需詳細資訊,請參閱 Tracing and Instrumenting ApplicationsFor more information, see Tracing and Instrumenting Applications.

需求Requirements

命名空間︰ Microsoft.VisualBasic.LoggingNamespace: Microsoft.VisualBasic.Logging

類別︰ LogClass: Log

組件: Visual Basic Runtime Library (位於 Microsoft.VisualBasic.dll)Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

另請參閱See also