ArcGIS Pro 2.7 API Reference Guide
Write(EventType,String,String,String,UInt32,Boolean) Method

ArcGIS.Desktop.Framework.Utilities Namespace > EventLog Class > Write Method : Write(EventType,String,String,String,UInt32,Boolean) Method
The type of event to log.
User defined entry describing the event.
The function associated with the event.
The code associated with the event.
The duration (in milliseconds) associated with the event.
If true, event is written to disk immediately.
Creates a timestamped event record of the specified type. Event is flushed immediately to disk if flush is set to true. The type of event to log. User defined entry describing the event. The function associated with the event. The code associated with the event. The duration (in milliseconds) associated with the event. If true, event is written to disk immediately.
Syntax
Public Overloads Shared Sub Write( _
   ByVal type As EventLog.EventType, _
   ByVal entry As String, _
   ByVal func As String, _
   ByVal code As String, _
   ByVal elapsed As UInteger, _
   Optional ByVal flush As Boolean _
) 

Parameters

type
The type of event to log.
entry
User defined entry describing the event.
func
The function associated with the event.
code
The code associated with the event.
elapsed
The duration (in milliseconds) associated with the event.
flush
If true, event is written to disk immediately.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EventLog Class
EventLog Members
Overload List